Alchemy.Client.edit_profile
You're seeing just the function
edit_profile
, go back to Alchemy.Client module for more information.
Link to this function
edit_profile(options)
Specs
edit_profile(username: String.t(), avatar: url()) :: {:ok, Alchemy.User.t()} | {:error, term()}
Edits the client's user_name and/or avatar.
Options
user_name
A string specifiying the new user_name for the clientavatar
A link to an image for the client's avatar
Examples
# Will edit "behind the scenes"
Client.edit_profile(username: "NewGuy", avatar: "imgur.com/image.jpeg")
iex> {:ok, user} = Client.edit_profile(username: "NewName")
{:ok, Alchemy.User%{....