Struct noob::events::Myself [−][src]
pub struct Myself { pub id: Snowflake, pub username: String, pub discriminator: String, pub avatar: Option<String>, pub bot: bool, pub mfa_enabled: bool, pub verified: bool, pub email: Option<String>, }
Data about the current user. (relevant Discord docs)
Fields
id: Snowflake
User ID
username: String
Username, not unique
discriminator: String
4-digit Discord tag
avatar: Option<String>
User's avatar hash
bot: bool
Whether this is a bot account
mfa_enabled: bool
Whether the account has MFA enabled
verified: bool
Whether the email address on this account has been verified
email: Option<String>
Email address
Trait Implementations
impl Debug for Myself
[src]
impl Debug for Myself
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Into<User> for Myself
[src]
impl Into<User> for Myself