Struct command::object::Member
zaun_community_protocol::command::object::Member · Struct
pub struct Member { … }A member as visible to the viewer. Optional fields depend on the viewer’s permissions; the host filters them.
Fields
Section titled “Fields”member_id: MemberId
Section titled “member_id: MemberId”Host-assigned id.
display_name: String
Section titled “display_name: String”1–32 scalars.
role_ids: Vec<RoleId>
Section titled “role_ids: Vec<RoleId>”Assigned roles; @everyone is implicit and never listed.
joined_at: u64
Section titled “joined_at: u64”Admission time, ms.
timeout_until: Option<u64>
Section titled “timeout_until: Option<u64>”Only for TIMEOUT_MEMBERS viewers and the member itself.
state: Option<MembershipState>
Section titled “state: Option<MembershipState>”Only for the member itself and APPROVE_MEMBERS/KICK_MEMBERS viewers.
admission: Option<Admission>
Section titled “admission: Option<Admission>”Only for APPROVE_MEMBERS viewers.
note: Option<String>
Section titled “note: Option<String>”The membership request note: membership.pending and membership.requested only.
SPEC: the protocol/the protocol say the member object comes “with admission and note” without
placing note; it is modelled as a member field.
bot_id: Option<BotId>
Section titled “bot_id: Option<BotId>”Present only for bots.
status_text: Option<String>
Section titled “status_text: Option<String>”The custom status text (member.status.set), until it expires.
status_emoji: Option<String>
Section titled “status_emoji: Option<String>”The custom status emoji.
status_expires_at: Option<u64>
Section titled “status_expires_at: Option<u64>”When the host clears the custom status, ms.
voice_channel_id: Option<ChannelId>
Section titled “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).
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq