# Struct prelude::Role

> Struct Role in zaun_bot.

`zaun_bot::prelude::Role` · Struct

```rust
pub struct Role { … }
```

## Fields

### `role_id: Id`

### `name: String`

### `color: Option<u32>`

### `position: u32`

### `permissions: Permissions`

### `managed_by: Option<Id>`

Set on a bot's managed role.

## Methods

### `mention`

```rust
pub fn mention(&self) -> String
```

The text that shows a mention of this role: `<@&role_id>`.

## Trait implementations

`Clone`, `Debug`

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