Events
Events are used to listen to specific changes of something, such as members or channels, which you then can use for your commands.
This section will list all events and what they do.
- AutoModerationConfiguration
- AutoModerationExecution
- Custom
- GuildBans
- GuildEmojis
- GuildInvites
- GuildMembers
- GuildMessagePolls
- GuildMessageReactions
- GuildMessages
- GuildPresences
- Guilds
- GuildVoiceStates
- GuildWebhooks
- NonIntents
- Discord Event Documentation
AutoModerationConfiguration
onAutoModerationRuleCreate This event triggers whenever a auto moderation rule is created.
onAutoModerationRuleDelete This event triggers whenever a auto moderation rule is deleted.
onAutoModerationRuleUpdate This event triggers whenever a auto moderation rule is updated.
AutoModerationExecution
onAutoModerationExecution This event triggers whenever a auto moderation rule is triggered.
Custom
onFunctionError This event triggers whenever a function has an error.
onVariableCreate This event triggers whenever a variable is created.
onVariableDelete This event triggers whenever a variable is deleted.
onVariableUpdate This event triggers whenever a variable is updated.
GuildBans
onGuildBanAdd This event triggers whenever a member is banned.
onGuildBanRemove This event triggers whenever a member is unbanned.
GuildEmojis
onEmojiCreate This event triggers whenever a emoji is created.
onEmojiDelete This event triggers whenever a emoji is deleted.
onEmojiUpdate This event triggers whenever a emoji is updated.
Stickers
onStickerCreate This event triggers whenever a sticker is created.
onStickerDelete This event triggers whenever a sticker is deleted.
onStickerUpdate This event triggers whenever a sticker is updated.
GuildInvites
onInviteCreate This event triggers whenever a invite is created.
onInviteDelete This event triggers whenever a invite is deleted.
GuildMembers
onJoin This event triggers whenever a member joins a guild.
onLeave This event triggers whenever a member leaves a guild.
onMemberAvailable This event triggers whenever a member becomes available.
onMemberChunk This event triggers whenever a member chunk is received.
onMemberUpdate This event triggers whenever a member is updated.
GuildMessagePolls
onPollVoteAdd This event triggers whenever a vote is added to a poll.
onPollVoteRemove This event triggers whenever a vote is removed from a poll.
GuildMessageReactions
onReactionAdd This event triggers whenever a reaction is added to a message.
onReactionRemove This event triggers whenever a reaction is removed from a message.
onReactionRemoveAll This event triggers whenever all reactions are removed from a message.
onReactionRemoveEmoji This event triggers whenever a reaction is removed from a message.
GuildMessages
onMessageDelete This event triggers whenever a message is deleted.
onMessageDeleteBulk This event triggers whenever multiple messages are deleted.
onMessageUpdate This event triggers whenever a message is updated.
onTypingStart This event triggers whenever a user starts typing.
GuildPresences
onPresenceUpdate This event triggers whenever a presence is updated.
Guilds
onChannelCreate This event triggers whenever a channel is created.
onChannelDelete This event triggers whenever a channel is deleted.
onChannelPinsUpdate This event triggers whenever a channel's pins are updated.
onChannelUpdate This event triggers whenever a channel is updated.
onGuildJoin This event triggers whenever the bot joins a guild.
onGuildLeave This event triggers whenever the bot leaves a guild.
onGuildUnavailable This event triggers whenever a guild becomes unavailable.
onGuildUpdate This event triggers whenever a guild is updated.
onRoleCreate This event triggers whenever a role is created.
onRoleDelete This event triggers whenever a role is deleted.
onRoleUpdate This event triggers whenever a role is updated.
onStageInstanceCreate This event triggers whenever a stage instance is created.
onStageInstanceDelete This event triggers whenever a stage instance is deleted.
onStageInstanceUpdate This event triggers whenever a stage instance is updated.
onThreadCreate This event triggers whenever a thread is created.
onThreadDelete This event triggers whenever a thread is deleted.
onThreadListSync This event triggers whenever a thread list is synced.
onThreadMembersUpdate This event triggers whenever a thread's members are updated.
onThreadMemberUpdate This event triggers whenever a thread member is updated.
onThreadUpdate This event triggers whenever a thread is updated.
GuildVoiceStates
onVoiceStateUpdate This event triggers whenever a voice state is updated.
GuildWebhooks
onWebhooksUpdate This event triggers whenever a webhook is updated.
NonIntents
onApplicationCommandPermissionsUpdate This event triggers whenever a application command permissions are updated.
onEntitlementCreate This event triggers whenever a entitlement is created.
onEntitlementDelete This event triggers whenever a entitlement is deleted.
onEntitlementUpdate This event triggers whenever a entitlement is updated.
onInteractionCreate This event triggers whenever a interaction is created.
Discord Event Documentation
https://discord.com/developers/docs/topics/gateway
You may find the appropriate return data for each event in the Discord documentation, otherwise it’s documented in the event functions displayed on the event pages.