# Struct prelude::Mentions

> Struct Mentions in zaun_bot.

`zaun_bot::prelude::Mentions` · Struct

```rust
pub struct Mentions { … }
```

## Fields

### `everyone: bool`

### `members: Vec<Id>`

### `roles: Vec<Id>`

## Methods

### `has_member`

```rust
pub fn has_member(&self, id: &str) -> bool
```

Whether member `id` is named.

### `has_role`

```rust
pub fn has_role(&self, id: &str) -> bool
```

Whether role `id` is named.

### `includes`

```rust
pub fn includes(&self, member_id: &str, role_ids: &[Id]) -> bool
```

Whether a member with `member_id` and `role_ids` is mentioned: by id, by one of its
roles, or by `@everyone`.

### `is_empty`

```rust
pub fn is_empty(&self) -> bool
```

Whether nobody is mentioned.

## Trait implementations

`Clone`, `Debug`

[Full rustdoc page](/docs/api/rust/zaun-bot/zaun_bot/bindings/zaun/bot/types/struct.Mentions.html)
