Skip to content

Enum prelude::Event

zaun_bot::prelude::Event · Enum

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.

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

Group members (capability members).

The bot itself was removed; reason is kicked, banned, …

Group presence (capability presence).

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

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

Clone, Debug

Full rustdoc page