Skip to content

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.

Host-assigned id.

1–32 scalars.

Assigned roles; @everyone is implicit and never listed.

Admission time, ms.

Only for TIMEOUT_MEMBERS viewers and the member itself.

Only for the member itself and APPROVE_MEMBERS/KICK_MEMBERS viewers.

Only for APPROVE_MEMBERS viewers.

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.

Present only for bots.

The custom status text (member.status.set), until it expires.

The custom status emoji.

When the host clears the custom status, ms.

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).

Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq

Full rustdoc page