Member

Struct Member 

Source
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: User

User 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: String

When the user joined the guild formatted as ISO timestamp

§premium_since: Option<String>

When the user started boosting the guild

§deaf: bool

Whether the user is deafened in voice channels

§mute: bool

Whether 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 Debug for Member

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Member

Source§

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

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,