Skip to content

Function command::object::bot_events::allowed

zaun_community_protocol::command::object::bot_events::allowed · Function

pub fn allowed(caps: &Capabilities, kind: &str) -> bool

Whether the capabilities allow events of kind: member events need members, presence needs presence, DM events need dms; everything else is visible to any member anyway.

Full rustdoc page