# Struct command::object::Capabilities

> What a bot may do beyond its permission bits. Every field defaults to "no".

`zaun_community_protocol::command::object::Capabilities` · Struct

```rust
pub struct Capabilities { … }
```

What a bot may do beyond its permission bits. Every field defaults to "no".

## Fields

### `message_content: bool`

Read the content of messages that do not mention it.

### `members: bool`

List and read members beyond the authors it sees.

### `presence: bool`

Receive presence signals.

### `timers: bool`

Schedule timers.

### `attachments: bool`

Upload files for its messages.

### `voice: bool`

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

### `dms: bool`

Open direct messages with members and take theirs.

### `storage_bytes: u64`

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

### `network: Vec<String>`

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

### `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

### `within`

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

Whether every capability of `self` is also in `other`.

### `intersect`

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

What both allow.

## Trait implementations

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

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/bot/struct.Capabilities.html)
