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.
Variants
Section titled “Variants”Ready(Ready)
Section titled “Ready(Ready)”Always delivered first, once the bot’s connection is up.
MessageCreated(MessageEvent)
Section titled “MessageCreated(MessageEvent)”MessageUpdated(MessageEvent)
Section titled “MessageUpdated(MessageEvent)”MessageDeleted(MessageDeleted)
Section titled “MessageDeleted(MessageDeleted)”MessagesBulkDeleted(MessagesDeleted)
Section titled “MessagesBulkDeleted(MessagesDeleted)”ReactionAdded(Reaction)
Section titled “ReactionAdded(Reaction)”ReactionRemoved(Reaction)
Section titled “ReactionRemoved(Reaction)”MemberJoined(Member)
Section titled “MemberJoined(Member)”Group members (capability members).
MemberUpdated(Member)
Section titled “MemberUpdated(Member)”MemberLeft(Id)
Section titled “MemberLeft(Id)”MemberRemoved(String)
Section titled “MemberRemoved(String)”The bot itself was removed; reason is kicked, banned, …
MemberRolesUpdated(MemberRoles)
Section titled “MemberRolesUpdated(MemberRoles)”MemberTimedOut(MemberTimeout)
Section titled “MemberTimedOut(MemberTimeout)”ChannelCreated(Channel)
Section titled “ChannelCreated(Channel)”ChannelUpdated(Channel)
Section titled “ChannelUpdated(Channel)”ChannelDeleted(Id)
Section titled “ChannelDeleted(Id)”RoleCreated(Role)
Section titled “RoleCreated(Role)”RoleUpdated(Role)
Section titled “RoleUpdated(Role)”RoleDeleted(Id)
Section titled “RoleDeleted(Id)”TypingStarted(Typing)
Section titled “TypingStarted(Typing)”PresenceUpdated(Presence)
Section titled “PresenceUpdated(Presence)”Group presence (capability presence).
CommunityUpdated(CommunityProfile)
Section titled “CommunityUpdated(CommunityProfile)”CommandUpdated(Id)
Section titled “CommandUpdated(Id)”A bot’s command list changed; the bot’s id.
DmCreated(Channel)
Section titled “DmCreated(Channel)”Group dms (capability dms): a DM with the bot was opened, or the bot closed one.
DmClosed(Id)
Section titled “DmClosed(Id)”Other(RawEvent)
Section titled “Other(RawEvent)”Trait implementations
Section titled “Trait implementations”Clone, Debug