pub struct Member {
pub user: User,
pub nick: Option<String>,
pub avatar: Option<String>,
pub roles: Vec<Snowflake>,
pub joined_at: String,
pub premium_since: Option<String>,
pub deaf: bool,
pub mute: bool,
pub flags: u64,
pub pending: Option<bool>,
pub permissions: Option<Permissions>,
pub communication_disabled_until: Option<String>,
}Expand description
Fields§
§user: UserUser this member represents
nick: Option<String>Guild nickname
avatar: Option<String>Guild member’s guild avatar hash
roles: Vec<Snowflake>Array of role snowflakes
joined_at: StringWhen the user joined the guild formatted as ISO timestamp
When the user started boosting the guild
deaf: boolWhether the user is deafened in voice channels
mute: boolWhether the user is muted in voice channels
flags: u64§pending: Option<bool>Whether the user has not yet passed the guild’s Membership Screening requirements
permissions: Option<Permissions>total permissions of the member in the channel, including overwrites, returned when in the interaction object
communication_disabled_until: Option<String>when the user’s timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Member
impl<'de> Deserialize<'de> for Member
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Mentionable for Member
impl Mentionable for Member
fn to_mention(&self) -> String
Auto Trait Implementations§
impl Freeze for Member
impl RefUnwindSafe for Member
impl Send for Member
impl Sync for Member
impl Unpin for Member
impl UnwindSafe for Member
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more