Struct command::object::Capabilities
zaun_community_protocol::command::object::Capabilities · Struct
pub struct Capabilities { … }What a bot may do beyond its permission bits. Every field defaults to “no”.
Fields
Section titled “Fields”message_content: bool
Section titled “message_content: bool”Read the content of messages that do not mention it.
members: bool
Section titled “members: bool”List and read members beyond the authors it sees.
presence: bool
Section titled “presence: bool”Receive presence signals.
timers: bool
Section titled “timers: bool”Schedule timers.
attachments: bool
Section titled “attachments: bool”Upload files for its messages.
voice: bool
Section titled “voice: bool”Join voice channels and play audio (ADR-0020); CONNECT and SPEAK still apply.
dms: bool
Section titled “dms: bool”Open direct messages with members and take theirs.
storage_bytes: u64
Section titled “storage_bytes: u64”Key-value storage quota, bytes (≤ 1 GiB).
network: Vec<String>
Section titled “network: Vec<String>”DNS names it may request over https (≤ 32; a leading *. matches subdomains).
local_network: Vec<String>
Section titled “local_network: Vec<String>”Exact host:port addresses next to the host it may reach over http or https, private
addresses included (≤ 8): a media server on the same machine, say. Only the operator’s
ceiling ([bots] local_network_allow_list) lets any be granted.
Methods
Section titled “Methods”within
Section titled “within”pub fn within(&self, other: &Self) -> boolWhether every capability of self is also in other.
intersect
Section titled “intersect”pub fn intersect(&self, other: &Self) -> SelfWhat both allow.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Default, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq