# Enum prelude::Event

> The events a bot asked for in its manifest (`events`: wire types, groups such as `messages`, `members`, `dms`, or `*`). Anything without a typed case arrives as `other` with the ev

`zaun_bot::prelude::Event` · Enum

```rust
pub enum Event { … }
```

The events a bot asked for in its manifest (`events`: wire types, groups such as
`messages`, `members`, `dms`, or `*`). Anything without a typed case arrives as
`other` with the event's JSON body.

## Variants

### `Ready(Ready)`

Always delivered first, once the bot's connection is up.

### `MessageCreated(MessageEvent)`

### `MessageUpdated(MessageEvent)`

### `MessageDeleted(MessageDeleted)`

### `MessagesBulkDeleted(MessagesDeleted)`

### `ReactionAdded(Reaction)`

### `ReactionRemoved(Reaction)`

### `MemberJoined(Member)`

Group `members` (capability `members`).

### `MemberUpdated(Member)`

### `MemberLeft(Id)`

### `MemberRemoved(String)`

The bot itself was removed; `reason` is `kicked`, `banned`, ...

### `MemberRolesUpdated(MemberRoles)`

### `MemberTimedOut(MemberTimeout)`

### `ChannelCreated(Channel)`

### `ChannelUpdated(Channel)`

### `ChannelDeleted(Id)`

### `RoleCreated(Role)`

### `RoleUpdated(Role)`

### `RoleDeleted(Id)`

### `TypingStarted(Typing)`

### `PresenceUpdated(Presence)`

Group `presence` (capability `presence`).

### `CommunityUpdated(CommunityProfile)`

### `CommandUpdated(Id)`

A bot's command list changed; the bot's id.

### `DmCreated(Channel)`

Group `dms` (capability `dms`): a DM with the bot was opened, or the bot closed one.

### `DmClosed(Id)`

### `Other(RawEvent)`

## Trait implementations

`Clone`, `Debug`

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