Skip to content

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

Read the content of messages that do not mention it.

List and read members beyond the authors it sees.

Receive presence signals.

Schedule timers.

Upload files for its messages.

Join voice channels and play audio (ADR-0020); CONNECT and SPEAK still apply.

Open direct messages with members and take theirs.

Key-value storage quota, bytes (≤ 1 GiB).

DNS names it may request over https (≤ 32; a leading *. matches subdomains).

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.

pub fn within(&self, other: &Self) -> bool

Whether every capability of self is also in other.

pub fn intersect(&self, other: &Self) -> Self

What both allow.

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

Full rustdoc page