Skip to main content

Module incoming

Module incoming 

Source
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§

AddedThreadMember
A thread member added in a ThreadMembersUpdate: with its guild member (in ThreadMember::member) and presence.
ApplicationCommandPermissionsUpdate
The data of the Application Command Permissions Update dispatch event.
AutoModerationActionExecution
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 the MESSAGE_CONTENT intent).
AutoModerationRuleCreate
The data of the Auto Moderation Rule Create dispatch event (requires MANAGE_GUILD).
AutoModerationRuleDelete
The data of the Auto Moderation Rule Delete dispatch event (requires MANAGE_GUILD).
AutoModerationRuleUpdate
The data of the Auto Moderation Rule Update dispatch event (requires MANAGE_GUILD).
AvailableGuild
An available guild in a GuildCreate: the Guild plus the state the gateway sends with it (D-073).
ChannelCreate
The data of the Channel Create dispatch event: a guild channel relevant to the bot was created.
ChannelDelete
The data of the Channel Delete dispatch event.
ChannelInfo
The data of the Channel Info dispatch event: the ephemeral data of a guild’s channels, sent in response to a RequestChannelInfo command.
ChannelInfoChannel
The ephemeral data of a channel in a ChannelInfo event.
ChannelPinsUpdate
The data of the Channel Pins Update dispatch event (not sent when a pinned message is deleted).
ChannelUpdate
The data of the Channel Update dispatch event (not sent for last_message_id changes).
EntitlementCreate
The data of the Entitlement Create dispatch event.
EntitlementDelete
The data of the Entitlement Delete dispatch event (refunds and removals; entitlements are not deleted when they expire).
EntitlementUpdate
The data of the Entitlement Update dispatch event (for subscriptions: when they end, with ends_at).
GuildAuditLogEntryCreate
The data of the Guild Audit Log Entry Create dispatch event (requires VIEW_AUDIT_LOG); the entry’s guild_id is set.
GuildBanAdd
The data of the Guild Ban Add dispatch event (requires BAN_MEMBERS or VIEW_AUDIT_LOG).
GuildBanRemove
The data of the Guild Ban Remove dispatch event (requires BAN_MEMBERS or VIEW_AUDIT_LOG).
GuildDelete
The data of the Guild Delete dispatch event: the guild became unavailable (unavailable is true) or the bot left or was removed (false).
GuildEmojisUpdate
The data of the Guild Emojis Update dispatch event: the guild’s full emoji list.
GuildIntegrationsUpdate
The data of the Guild Integrations Update dispatch event.
GuildMemberAdd
The data of the Guild Member Add dispatch event (requires the GUILD_MEMBERS intent; may repeat for existing members).
GuildMemberRemove
The data of the Guild Member Remove dispatch event: a user left, was kicked or banned (requires the GUILD_MEMBERS intent).
GuildMemberUpdate
The data of the Guild Member Update dispatch event: a member or their user changed (requires the GUILD_MEMBERS intent).
GuildMembersChunk
The data of the Guild Members Chunk dispatch event: one part of the answer to a RequestGuildMembers command.
GuildRoleCreate
The data of the Guild Role Create dispatch event.
GuildRoleDelete
The data of the Guild Role Delete dispatch event.
GuildRoleUpdate
The data of the Guild Role Update dispatch event.
GuildScheduledEventCreate
The data of the Guild Scheduled Event Create dispatch event.
GuildScheduledEventDelete
The data of the Guild Scheduled Event Delete dispatch event.
GuildScheduledEventUpdate
The data of the Guild Scheduled Event Update dispatch event.
GuildScheduledEventUserAdd
The data of the Guild Scheduled Event User Add dispatch event: a user subscribed to an event.
GuildScheduledEventUserRemove
The data of the Guild Scheduled Event User Remove dispatch event: a user unsubscribed from an event.
GuildSoundboardSoundCreate
The data of the Guild Soundboard Sound Create dispatch event.
GuildSoundboardSoundDelete
The data of the Guild Soundboard Sound Delete dispatch event.
GuildSoundboardSoundUpdate
The data of the Guild Soundboard Sound Update dispatch event.
GuildSoundboardSoundsUpdate
The data of the Guild Soundboard Sounds Update dispatch event: several sounds changed.
GuildStickersUpdate
The data of the Guild Stickers Update dispatch event: the guild’s full sticker list.
GuildUpdate
The data of the Guild Update dispatch event.
Hello
The data of a Hello event (opcode 10), sent immediately after the WebSocket connection opens.
IntegrationCreate
The data of the Integration Create dispatch event (the integration has no user).
IntegrationDelete
The data of the Integration Delete dispatch event.
IntegrationUpdate
The data of the Integration Update dispatch event (the integration has no user).
InteractionCreate
The data of the Interaction Create dispatch event: a user used a command, component or modal.
InviteCreate
The data of the Invite Create dispatch event (requires MANAGE_CHANNELS on the channel).
InviteDelete
The data of the Invite Delete dispatch event.
MessageCreate
The data of the Message Create dispatch event: a new message was sent.
MessageDelete
The data of the Message Delete dispatch event.
MessageDeleteBulk
The data of the Message Delete Bulk dispatch event.
MessagePollVoteAdd
The data of the Message Poll Vote Add dispatch event (one event per answer for multiselect polls).
MessagePollVoteRemove
The data of the Message Poll Vote Remove dispatch event (one event per answer for multiselect polls).
MessageReactionAdd
The data of the Message Reaction Add dispatch event.
MessageReactionRemove
The data of the Message Reaction Remove dispatch event.
MessageReactionRemoveAll
The data of the Message Reaction Remove All dispatch event.
MessageReactionRemoveEmoji
The data of the Message Reaction Remove Emoji dispatch event: all reactions with one emoji were removed.
MessageUpdate
The data of the Message Update dispatch event: a message was edited (the full new message; tts is always false).
PresenceUpdate
The data of the Presence Update dispatch event (requires the GUILD_PRESENCES intent).
RateLimitMetadata
The metadata of a rate-limited REQUEST_GUILD_MEMBERS.
RateLimited
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.
ReadyApplication
The partial application included in Ready: its ID and flags.
SoundboardSounds
The data of the Soundboard Sounds dispatch event: a guild’s sounds, sent in response to a RequestSoundboardSounds command.
StageInstanceCreate
The data of the Stage Instance Create dispatch event: a stage went live.
StageInstanceDelete
The data of the Stage Instance Delete dispatch event: a stage ended.
StageInstanceUpdate
The data of the Stage Instance Update dispatch event.
SubscriptionCreate
The data of the Subscription Create dispatch event (use entitlements, not the status, to grant perks).
SubscriptionDelete
The data of the Subscription Delete dispatch event.
SubscriptionUpdate
The data of the Subscription Update dispatch event.
ThreadCreate
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).
ThreadDelete
The data of the Thread Delete dispatch event: only the thread’s IDs and type.
ThreadListSync
The data of the Thread List Sync dispatch event: the active threads of channels the bot gained access to.
ThreadMemberUpdate
The data of the Thread Member Update dispatch event: the bot’s thread member changed.
ThreadMembersUpdate
The data of the Thread Members Update dispatch event: users were added to or removed from a thread (without the GUILD_MEMBERS intent: only the bot).
ThreadUpdate
The data of the Thread Update dispatch event (not sent for last_message_id changes).
TypingStart
The data of the Typing Start dispatch event.
UserUpdate
The data of the User Update dispatch event: the bot’s own user changed.
VoiceChannelEffectSend
The data of the Voice Channel Effect Send dispatch event: someone sent an emoji reaction or soundboard sound in the bot’s voice channel.
VoiceChannelStartTimeUpdate
The data of the Voice Channel Start Time Update dispatch event.
VoiceChannelStatusUpdate
The data of the Voice Channel Status Update dispatch event.
VoiceServerUpdate
The data of the Voice Server Update dispatch event: where to connect for voice. Debug does not print the token.
VoiceStateUpdate
The data of the Voice State Update dispatch event: someone joined, left or moved between voice channels.
WebhooksUpdate
The data of the Webhooks Update dispatch event: a channel’s webhooks changed.

Enums§

GuildCreate
The data of the Guild Create dispatch event: a guild from Ready was loaded, became available again, or the bot joined a new guild.
VoiceChannelEffectAnimationType
The animation of a voice channel effect.