Expand description
Payloads received from the gateway: the connection events and the data of every dispatch event.
Each dispatch event has its own payload type (D-073). An event whose data is exactly one
object is a newtype that dereferences to it (e.g. ChannelCreate →
Channel); an event with extra fields holds the object and the
extras, decoded in one pass.
Structs§
- Added
Thread Member - A thread member added in a
ThreadMembersUpdate: with its guild member (inThreadMember::member) and presence. - Application
Command Permissions Update - The data of the Application Command Permissions Update dispatch event.
- Auto
Moderation Action Execution - The data of the Auto Moderation Action Execution
dispatch event: a rule triggered and one of its actions ran (requires
MANAGE_GUILD; the content fields require theMESSAGE_CONTENTintent). - Auto
Moderation Rule Create - The data of the Auto Moderation Rule Create
dispatch event (requires
MANAGE_GUILD). - Auto
Moderation Rule Delete - The data of the Auto Moderation Rule Delete
dispatch event (requires
MANAGE_GUILD). - Auto
Moderation Rule Update - The data of the Auto Moderation Rule Update
dispatch event (requires
MANAGE_GUILD). - Available
Guild - An available guild in a
GuildCreate: theGuildplus the state the gateway sends with it (D-073). - Channel
Create - The data of the Channel Create dispatch event: a guild channel relevant to the bot was created.
- Channel
Delete - The data of the Channel Delete dispatch event.
- Channel
Info - The data of the Channel Info
dispatch event: the ephemeral data of a guild’s channels, sent in response to a
RequestChannelInfocommand. - Channel
Info Channel - The ephemeral data of a channel
in a
ChannelInfoevent. - Channel
Pins Update - The data of the Channel Pins Update dispatch event (not sent when a pinned message is deleted).
- Channel
Update - The data of the Channel Update
dispatch event (not sent for
last_message_idchanges). - Entitlement
Create - The data of the Entitlement Create dispatch event.
- Entitlement
Delete - The data of the Entitlement Delete dispatch event (refunds and removals; entitlements are not deleted when they expire).
- Entitlement
Update - The data of the Entitlement Update
dispatch event (for subscriptions: when they end, with
ends_at). - Guild
Audit LogEntry Create - The data of the Guild Audit Log Entry Create
dispatch event (requires
VIEW_AUDIT_LOG); the entry’sguild_idis set. - Guild
BanAdd - The data of the Guild Ban Add
dispatch event (requires
BAN_MEMBERSorVIEW_AUDIT_LOG). - Guild
BanRemove - The data of the Guild Ban Remove
dispatch event (requires
BAN_MEMBERSorVIEW_AUDIT_LOG). - Guild
Delete - The data of the Guild Delete
dispatch event: the guild became unavailable (
unavailableistrue) or the bot left or was removed (false). - Guild
Emojis Update - The data of the Guild Emojis Update dispatch event: the guild’s full emoji list.
- Guild
Integrations Update - The data of the Guild Integrations Update dispatch event.
- Guild
Member Add - The data of the Guild Member Add
dispatch event (requires the
GUILD_MEMBERSintent; may repeat for existing members). - Guild
Member Remove - The data of the Guild Member Remove
dispatch event: a user left, was kicked or banned (requires the
GUILD_MEMBERSintent). - Guild
Member Update - The data of the Guild Member Update
dispatch event: a member or their user changed (requires the
GUILD_MEMBERSintent). - Guild
Members Chunk - The data of the Guild Members Chunk
dispatch event: one part of the answer to a
RequestGuildMemberscommand. - Guild
Role Create - The data of the Guild Role Create dispatch event.
- Guild
Role Delete - The data of the Guild Role Delete dispatch event.
- Guild
Role Update - The data of the Guild Role Update dispatch event.
- Guild
Scheduled Event Create - The data of the Guild Scheduled Event Create dispatch event.
- Guild
Scheduled Event Delete - The data of the Guild Scheduled Event Delete dispatch event.
- Guild
Scheduled Event Update - The data of the Guild Scheduled Event Update dispatch event.
- Guild
Scheduled Event User Add - The data of the Guild Scheduled Event User Add dispatch event: a user subscribed to an event.
- Guild
Scheduled Event User Remove - The data of the Guild Scheduled Event User Remove dispatch event: a user unsubscribed from an event.
- Guild
Soundboard Sound Create - The data of the Guild Soundboard Sound Create dispatch event.
- Guild
Soundboard Sound Delete - The data of the Guild Soundboard Sound Delete dispatch event.
- Guild
Soundboard Sound Update - The data of the Guild Soundboard Sound Update dispatch event.
- Guild
Soundboard Sounds Update - The data of the Guild Soundboard Sounds Update dispatch event: several sounds changed.
- Guild
Stickers Update - The data of the Guild Stickers Update dispatch event: the guild’s full sticker list.
- Guild
Update - The data of the Guild Update dispatch event.
- Hello
- The data of a Hello event (opcode 10), sent immediately after the WebSocket connection opens.
- Integration
Create - The data of the Integration Create
dispatch event (the integration has no
user). - Integration
Delete - The data of the Integration Delete dispatch event.
- Integration
Update - The data of the Integration Update
dispatch event (the integration has no
user). - Interaction
Create - The data of the Interaction Create dispatch event: a user used a command, component or modal.
- Invite
Create - The data of the Invite Create
dispatch event (requires
MANAGE_CHANNELSon the channel). - Invite
Delete - The data of the Invite Delete dispatch event.
- Message
Create - The data of the Message Create dispatch event: a new message was sent.
- Message
Delete - The data of the Message Delete dispatch event.
- Message
Delete Bulk - The data of the Message Delete Bulk dispatch event.
- Message
Poll Vote Add - The data of the Message Poll Vote Add dispatch event (one event per answer for multiselect polls).
- Message
Poll Vote Remove - The data of the Message Poll Vote Remove dispatch event (one event per answer for multiselect polls).
- Message
Reaction Add - The data of the Message Reaction Add dispatch event.
- Message
Reaction Remove - The data of the Message Reaction Remove dispatch event.
- Message
Reaction Remove All - The data of the Message Reaction Remove All dispatch event.
- Message
Reaction Remove Emoji - The data of the Message Reaction Remove Emoji dispatch event: all reactions with one emoji were removed.
- Message
Update - The data of the Message Update
dispatch event: a message was edited (the full new message;
ttsis alwaysfalse). - Presence
Update - The data of the Presence Update
dispatch event (requires the
GUILD_PRESENCESintent). - Rate
Limit Metadata - The metadata of a rate-limited
REQUEST_GUILD_MEMBERS. - Rate
Limited - The data of the Rate Limited dispatch event: a gateway command was rate limited.
- Ready
- The data of the Ready dispatch event, sent after a successful identify.
- Ready
Application - The partial application included in
Ready: its ID and flags. - Soundboard
Sounds - The data of the Soundboard Sounds
dispatch event: a guild’s sounds, sent in response to a
RequestSoundboardSoundscommand. - Stage
Instance Create - The data of the Stage Instance Create dispatch event: a stage went live.
- Stage
Instance Delete - The data of the Stage Instance Delete dispatch event: a stage ended.
- Stage
Instance Update - The data of the Stage Instance Update dispatch event.
- Subscription
Create - The data of the Subscription Create dispatch event (use entitlements, not the status, to grant perks).
- Subscription
Delete - The data of the Subscription Delete dispatch event.
- Subscription
Update - The data of the Subscription Update dispatch event.
- Thread
Create - The data of the Thread Create
dispatch event: a thread was created, or the bot was added to a private thread (then the
thread includes the bot’s
ThreadMember). - Thread
Delete - The data of the Thread Delete dispatch event: only the thread’s IDs and type.
- Thread
List Sync - The data of the Thread List Sync dispatch event: the active threads of channels the bot gained access to.
- Thread
Member Update - The data of the Thread Member Update dispatch event: the bot’s thread member changed.
- Thread
Members Update - The data of the Thread Members Update
dispatch event: users were added to or removed from a thread (without the
GUILD_MEMBERSintent: only the bot). - Thread
Update - The data of the Thread Update
dispatch event (not sent for
last_message_idchanges). - Typing
Start - The data of the Typing Start dispatch event.
- User
Update - The data of the User Update dispatch event: the bot’s own user changed.
- Voice
Channel Effect Send - The data of the Voice Channel Effect Send dispatch event: someone sent an emoji reaction or soundboard sound in the bot’s voice channel.
- Voice
Channel Start Time Update - The data of the Voice Channel Start Time Update dispatch event.
- Voice
Channel Status Update - The data of the Voice Channel Status Update dispatch event.
- Voice
Server Update - The data of the Voice Server Update
dispatch event: where to connect for voice.
Debugdoes not print the token. - Voice
State Update - The data of the Voice State Update dispatch event: someone joined, left or moved between voice channels.
- Webhooks
Update - The data of the Webhooks Update dispatch event: a channel’s webhooks changed.
Enums§
- Guild
Create - The data of the Guild Create
dispatch event: a guild from
Readywas loaded, became available again, or the bot joined a new guild. - Voice
Channel Effect Animation Type - The animation of a voice channel effect.