Struct discord::EditProfile [] [src]

pub struct EditProfile(_);

Patch content for the edit_profile call.

Methods

impl EditProfile
[src]

fn username(self, username: &str) -> Self

Edit the user's username. Must be between 2 and 32 characters long.

fn avatar(self, icon: Option<&str>) -> Self

Edit the user's avatar. Use None to remove the avatar.

fn password(self, password: &str) -> Self

Provide the user's current password for authentication. Does not apply to bot accounts, and must be supplied for user accounts.

fn email(self, email: &str) -> Self

Edit the user's email address. Does not apply to bot accounts.

fn new_password(self, password: &str) -> Self

Edit the user's password. Does not apply to bot accounts.