pub struct Member {Show 13 fields
pub member_id: MemberId,
pub display_name: String,
pub role_ids: Vec<RoleId>,
pub joined_at: u64,
pub timeout_until: Option<u64>,
pub state: Option<MembershipState>,
pub admission: Option<Admission>,
pub note: Option<String>,
pub bot_id: Option<BotId>,
pub status_text: Option<String>,
pub status_emoji: Option<String>,
pub status_expires_at: Option<u64>,
pub voice_channel_id: Option<ChannelId>,
}Expand description
A member as visible to the viewer (§8.3). Optional fields depend on the viewer’s permissions; the host filters them.
Fields§
§member_id: MemberIdHost-assigned id.
display_name: String1–32 scalars.
role_ids: Vec<RoleId>Assigned roles; @everyone is implicit and never listed.
joined_at: u64Admission time, ms.
timeout_until: Option<u64>Only for TIMEOUT_MEMBERS viewers and the member itself.
state: Option<MembershipState>Only for the member itself and APPROVE_MEMBERS/KICK_MEMBERS viewers.
admission: Option<Admission>Only for APPROVE_MEMBERS viewers.
note: Option<String>The membership request note: membership.pending and membership.requested only.
SPEC: §8.9/§9.2 say the member object comes “with admission and note” without
placing note; it is modelled as a member field.
bot_id: Option<BotId>Present only for bots (§8.13).
status_text: Option<String>The custom status text (member.status.set), until it expires.
status_emoji: Option<String>The custom status emoji.
status_expires_at: Option<u64>When the host clears the custom status, ms.
voice_channel_id: Option<ChannelId>Only in what the host sends a bot: the voice channel the member is connected to, when
the bot can see that channel (so /play can join the caller).