Skip to main content

allowed

Function allowed 

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

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.