# Function command::object::bot_events::allowed

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

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

```rust
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](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/bot/events/fn.allowed.html)
