Struct discord_sdk::user::User [−][src]
pub struct User {
pub id: UserId,
pub username: String,
pub discriminator: Option<u32>,
pub avatar: Option<Avatar>,
pub is_bot: bool,
}
Expand description
A Discord user.
Fields
id: UserId
The user’s id
username: String
The username
discriminator: Option<u32>
The user’s unique discriminator (ie. the #
avatar: Option<Avatar>
The MD5 hash of the user’s avatar
is_bot: bool
Whether the user belongs to an OAuth2 application
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for User
impl UnwindSafe for User
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more