Function serenity::http::edit_profile[][src]

pub fn edit_profile(map: &Map<String, Value>) -> Result<CurrentUser>

Edits the current user's profile settings.

For bot users, the password is optional.

User Accounts

If a new token is received due to a password change, then the stored token internally will be updated.

Note: this token change may cause requests made between the actual token change and when the token is internally changed to be invalid requests, as the token may be outdated.