Nostrum.Api.modify_current_user

You're seeing just the function modify_current_user, go back to Nostrum.Api module for more information.
Link to this function

modify_current_user(options)

View Source

Specs

modify_current_user(options()) :: error() | {:ok, Nostrum.Struct.User.t()}

Changes the username or avatar of the current user.

Options

  • :username (string) - new username
  • :avatar (string) - the user's avatar as avatar data

Examples

Nostrum.Api.modify_current_user(avatar: "data:image/jpeg;base64,YXl5IGJieSB1IGx1a2luIDQgc3VtIGZ1az8=")