#[non_exhaustive]pub struct PartialMember {Show 13 fields
pub nick: Option<CompactString>,
pub avatar: Option<ImageHash>,
pub banner: Option<ImageHash>,
pub roles: Vec<RoleId>,
pub joined_at: Option<Timestamp>,
pub premium_since: Option<Timestamp>,
pub deaf: bool,
pub mute: bool,
pub flags: MemberFlags,
pub pending: bool,
pub communication_disabled_until: Option<Timestamp>,
pub avatar_decoration_data: Option<Box<AvatarDecorationData>>,
pub collectibles: Option<Box<Collectibles>>,
}Expand description
A guild member
without its User, as attached to messages (MESSAGE_CREATE, MESSAGE_UPDATE) where the
user is the message’s author (D-051).
Combine it with the author through PartialMember::into_member.
discord.js counterpart: the member of a Message (a GuildMember).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.nick: Option<CompactString>The member’s nickname in this guild.
avatar: Option<ImageHash>The member’s guild avatar hash, overriding the user’s avatar in this guild.
The member’s guild banner hash.
roles: Vec<RoleId>The IDs of the member’s roles (the @everyone role is implied and not listed).
joined_at: Option<Timestamp>When the user joined the guild. None for guest members.
When the user started boosting the guild.
deaf: boolWhether the member is deafened in voice channels.
mute: boolWhether the member is muted in voice channels.
flags: MemberFlagsThe member’s flags.
pending: boolWhether the member has not yet passed the guild’s membership screening. Such members cannot use most of the guild until they do.
communication_disabled_until: Option<Timestamp>When the member’s timeout ends. A time in the past means the member is no longer timed out.
avatar_decoration_data: Option<Box<AvatarDecorationData>>The member’s guild-specific avatar decoration.
collectibles: Option<Box<Collectibles>>The member’s guild-specific collectibles.
Implementations§
Source§impl PartialMember
impl PartialMember
Sourcepub fn into_member(self, user: User) -> Member
pub fn into_member(self, user: User) -> Member
Completes this member with its user, typically the author of the message the member came with.
discord.js counterpart: none (discord.js builds the GuildMember itself).