Variable: Events
constEvents:object
Defined in: projects/framework/src/lib/types/Events.ts:27
Type Declaration
ApplicationCommandPermissionsUpdate
readonlyApplicationCommandPermissionsUpdate:ApplicationCommandPermissionsUpdate
ApplicationCommandRegistriesBulkOverwriteError
readonlyApplicationCommandRegistriesBulkOverwriteError:"applicationCommandRegistriesBulkOverwriteError"
Emitted when an error is encountered when handling the command registries in bulk overwrite mode.
Param
The error that was thrown
Param
The guild id where the error was thrown
ApplicationCommandRegistriesInitialising
readonlyApplicationCommandRegistriesInitialising:"applicationCommandRegistriesInitialising"
Emitted when the application command registries are being initialized.
ApplicationCommandRegistriesRegistered
readonlyApplicationCommandRegistriesRegistered:"applicationCommandRegistriesRegistered"
Emitted once the application command registries have been initialized.
Param
The initialised registries
AutoModerationActionExecution
readonlyAutoModerationActionExecution:AutoModerationActionExecution
AutoModerationRuleCreate
readonlyAutoModerationRuleCreate:AutoModerationRuleCreate
AutoModerationRuleDelete
readonlyAutoModerationRuleDelete:AutoModerationRuleDelete
AutoModerationRuleUpdate
readonlyAutoModerationRuleUpdate:AutoModerationRuleUpdate
CacheSweep
readonlyCacheSweep:CacheSweep
ChannelCreate
readonlyChannelCreate:ChannelCreate
ChannelDelete
readonlyChannelDelete:ChannelDelete
ChannelPinsUpdate
readonlyChannelPinsUpdate:ChannelPinsUpdate
ChannelUpdate
readonlyChannelUpdate:ChannelUpdate
ChatInputCommandAccepted
readonlyChatInputCommandAccepted:"chatInputCommandAccepted"
Emitted when a chat input command passes all precondition checks, if any.
Param
The contextual payload
ChatInputCommandDenied
readonlyChatInputCommandDenied:"chatInputCommandDenied"
Emitted when a precondition denies a chat input command from being run.
Param
The error reported by the precondition
Param
The contextual payload
ChatInputCommandError
readonlyChatInputCommandError:"chatInputCommandError"
Emitted after a chat input command runs unsuccesfully.
Param
The error that was thrown
Param
The contextual payload
ChatInputCommandFinish
readonlyChatInputCommandFinish:"chatInputCommandFinish"
Emitted directly after a chat input command finished running, regardless of the outcome.
Param
The interaction that executed the command
Param
The command that finished running
Param
The contextual payload
ChatInputCommandRun
readonlyChatInputCommandRun:"chatInputCommandRun"
Emitted directly before a chat input command is run.
Param
The interaction that executed the command
Param
The command that is being run
Param
The contextual payload
ChatInputCommandSuccess
readonlyChatInputCommandSuccess:"chatInputCommandSuccess"
Emitted after a chat input command runs successfully.
Param
The contextual payload
ClientReady
readonlyClientReady:ClientReady
CommandApplicationCommandRegistryError
readonlyCommandApplicationCommandRegistryError:"commandApplicationCommandRegistryError"
Emitted when an error is encountered when handling the command application command registry.
Param
The error that was thrown
Param
The command whose registry caused the error
CommandAutocompleteInteractionError
readonlyCommandAutocompleteInteractionError:"commandAutocompleteInteractionError"
Emitted when an error is encountered when executing an autocomplete interaction handler.
Param
The error that was encountered
Param
The contextual payload
CommandAutocompleteInteractionSuccess
readonlyCommandAutocompleteInteractionSuccess:"commandAutocompleteInteractionSuccess"
Emitted after an autocomplete interaction handler runs successfully.
Param
The contextual payload
CommandDoesNotHaveChatInputCommandHandler
readonlyCommandDoesNotHaveChatInputCommandHandler:"commandDoesNotHaveChatInputCommandHandler"
Emitted when a chat input command is executed but a chatInputRun method is not found.
Param
The contextual payload
CommandDoesNotHaveContextMenuCommandHandler
readonlyCommandDoesNotHaveContextMenuCommandHandler:"commandDoesNotHaveContextMenuCommandHandler"
Emitted when a chat input command is executed but a contextMenuRun method is not found.
Param
The contextual payload
CommandDoesNotHaveMessageCommandHandler
readonlyCommandDoesNotHaveMessageCommandHandler:"commandDoesNotHaveMessageCommandHandler"
Emitted when a message command is executed but a messageRun method is not found.
Param
The contextual payload
ContextMenuCommandAccepted
readonlyContextMenuCommandAccepted:"contextMenuCommandAccepted"
Emitted when a context menu command passes all precondition checks, if any.
Param
The contextual payload
ContextMenuCommandDenied
readonlyContextMenuCommandDenied:"contextMenuCommandDenied"
Emitted when a precondition denies a context menu command from being run.
Param
The error reported by the precondition
Param
The contextual payload
ContextMenuCommandError
readonlyContextMenuCommandError:"contextMenuCommandError"
Emitted after a context menu command runs unsuccesfully.
Param
The error that was thrown
Param
The contextual payload
ContextMenuCommandFinish
readonlyContextMenuCommandFinish:"contextMenuCommandFinish"
Emitted directly after a context menu command finished running, regardless of the outcome.
Param
The interaction that executed the command
Param
The command that finished running
Param
The contextual payload
ContextMenuCommandRun
readonlyContextMenuCommandRun:"contextMenuCommandRun"
Emitted directly before a context menu command is run.
Param
The interaction that executed the command
Param
The command that is being run
Param
The contextual payload
ContextMenuCommandSuccess
readonlyContextMenuCommandSuccess:"contextMenuCommandSuccess"
Emitted after a context menu command runs successfully.
Param
The contextual payload
Debug
readonlyDebug:Debug
Error
readonlyError:Error
GuildAuditLogEntryCreate
readonlyGuildAuditLogEntryCreate:GuildAuditLogEntryCreate
GuildAvailable
readonlyGuildAvailable:GuildAvailable
GuildBanAdd
readonlyGuildBanAdd:GuildBanAdd
GuildBanRemove
readonlyGuildBanRemove:GuildBanRemove
GuildCreate
readonlyGuildCreate:GuildCreate
GuildDelete
readonlyGuildDelete:GuildDelete
GuildEmojiCreate
readonlyGuildEmojiCreate:GuildEmojiCreate
GuildEmojiDelete
readonlyGuildEmojiDelete:GuildEmojiDelete
GuildEmojiUpdate
readonlyGuildEmojiUpdate:GuildEmojiUpdate
GuildIntegrationsUpdate
readonlyGuildIntegrationsUpdate:GuildIntegrationsUpdate
GuildMemberAdd
readonlyGuildMemberAdd:GuildMemberAdd
GuildMemberAvailable
readonlyGuildMemberAvailable:GuildMemberAvailable
GuildMemberRemove
readonlyGuildMemberRemove:GuildMemberRemove
GuildMembersChunk
readonlyGuildMembersChunk:GuildMembersChunk
GuildMemberUpdate
readonlyGuildMemberUpdate:GuildMemberUpdate
GuildRoleCreate
readonlyGuildRoleCreate:GuildRoleCreate
GuildRoleDelete
readonlyGuildRoleDelete:GuildRoleDelete
GuildRoleUpdate
readonlyGuildRoleUpdate:GuildRoleUpdate
GuildScheduledEventCreate
readonlyGuildScheduledEventCreate:GuildScheduledEventCreate
GuildScheduledEventDelete
readonlyGuildScheduledEventDelete:GuildScheduledEventDelete
GuildScheduledEventUpdate
readonlyGuildScheduledEventUpdate:GuildScheduledEventUpdate
GuildScheduledEventUserAdd
readonlyGuildScheduledEventUserAdd:GuildScheduledEventUserAdd
GuildScheduledEventUserRemove
readonlyGuildScheduledEventUserRemove:GuildScheduledEventUserRemove
GuildStickerCreate
readonlyGuildStickerCreate:GuildStickerCreate
GuildStickerDelete
readonlyGuildStickerDelete:GuildStickerDelete
GuildStickerUpdate
readonlyGuildStickerUpdate:GuildStickerUpdate
GuildUnavailable
readonlyGuildUnavailable:GuildUnavailable
GuildUpdate
readonlyGuildUpdate:GuildUpdate
InteractionCreate
readonlyInteractionCreate:InteractionCreate
InteractionHandlerError
readonlyInteractionHandlerError:"interactionHandlerError"
Emitted when an error is encountered when executing an interaction handler.
Param
The error that was encountered
Param
The contextual payload
InteractionHandlerParseError
readonlyInteractionHandlerParseError:"interactionHandlerParseError"
Emitted when the parse method of an interaction handler encounters an error.
Param
The error that was encountered
Param
The contextual payload
InteractionHandlerParseNone
readonlyInteractionHandlerParseNone:"interactionHandlerParseNone"
Emitted when the parse method of an interaction handler passes successfully (no errors are encountered) and none is returned.
Param
The Option.None from the parse method.
Param
The contextual payload
InteractionHandlerParseSome
readonlyInteractionHandlerParseSome:"interactionHandlerParseSome"
Emitted when the parse method of an interaction handler passes successfully (no errors are encountered) and some is returned.
Param
The Option.Some from the parse method.
Param
The contextual payload
InteractionHandlerParseSuccess
readonlyInteractionHandlerParseSuccess:"interactionHandlerParseSuccess"
Emitted when the parse method of an interaction handler passes successfully (no errors are encountered)
Use the option parameter to determine if some or none was passed.
Param
The Option from the parse method.
Param
The contextual payload
Invalidated
readonlyInvalidated:Invalidated
InviteCreate
readonlyInviteCreate:InviteCreate
InviteDelete
readonlyInviteDelete:InviteDelete
ListenerError
readonlyListenerError:"listenerError"
Emitted when an error is encountered when executing a listener.
Param
The error that was thrown
Param
The contextual payload
MentionPrefixOnly
readonlyMentionPrefixOnly:"mentionPrefixOnly"
Emitted when a message is created consisting of only the bot's mention.
Param
The created message
MessageBulkDelete
readonlyMessageBulkDelete:MessageBulkDelete
MessageCommandAccepted
readonlyMessageCommandAccepted:"messageCommandAccepted"
Emitted when a message command passes all precondition checks, if any.
Param
The contextual payload
MessageCommandDenied
readonlyMessageCommandDenied:"messageCommandDenied"
Emitted when a precondition denies a message command from being run.
Param
The error reported by the precondition
Param
The contextual payload
MessageCommandError
readonlyMessageCommandError:"messageCommandError"
Emitted after a message command runs unsuccesfully.
Param
The error that was thrown
Param
The contextual payload
MessageCommandFinish
readonlyMessageCommandFinish:"messageCommandFinish"
Emitted directly after a message command finished running, regardless of the outcome.
Param
The message that executed the command
Param
The command that finished running
Param
The contextual payload
MessageCommandRun
readonlyMessageCommandRun:"messageCommandRun"
Emitted directly before a message command is run.
Param
The message that executed the command
Param
The command that is being run
Param
The contextual payload
MessageCommandSuccess
readonlyMessageCommandSuccess:"messageCommandSuccess"
Emitted after a message command runs successfully.
Param
The contextual payload
MessageCommandTypingError
readonlyMessageCommandTypingError:"messageCommandTypingError"
Emitted after the bot unsuccessfully tried to start typing when a command is executed.
Param
The error that was thrown
Param
The contextual payload
MessageCreate
readonlyMessageCreate:MessageCreate
MessageDelete
readonlyMessageDelete:MessageDelete
MessageReactionAdd
readonlyMessageReactionAdd:MessageReactionAdd
MessageReactionRemove
readonlyMessageReactionRemove:MessageReactionRemove
MessageReactionRemoveAll
readonlyMessageReactionRemoveAll:MessageReactionRemoveAll
MessageReactionRemoveEmoji
readonlyMessageReactionRemoveEmoji:MessageReactionRemoveEmoji
MessageUpdate
readonlyMessageUpdate:MessageUpdate
NonPrefixedMessage
readonlyNonPrefixedMessage:"nonPrefixedMessage"
Emitted when a message is created that does not start with a valid prefix.
Param
The created message
PiecePostLoad
readonlyPiecePostLoad:"piecePostLoad"
Emitted after a piece is loaded.
Param
The store in which the piece belongs to
Param
The piece that was loaded
PieceUnload
readonlyPieceUnload:"pieceUnload"
Emitted when a piece is unloaded.
Param
The store in which the piece belongs to
Param
The piece that was unloaded
PluginLoaded
readonlyPluginLoaded:"pluginLoaded"
Emitted when a plugin is loaded.
Param
The plugin hook that was loaded
Param
The name of the plugin, if any
PossibleAutocompleteInteraction
readonlyPossibleAutocompleteInteraction:"possibleAutocompleteInteraction"
Emitted when an autocomplete interaction is recieved.
Param
The interaction that was recieved
PossibleChatInputCommand
readonlyPossibleChatInputCommand:"possibleChatInputCommand"
Emitted when a chat input command interaction is recieved.
Param
The interaction that was recieved.
PossibleContextMenuCommand
readonlyPossibleContextMenuCommand:"possibleContextMenuCommand"
Emitted when a context menu interaction is recieved.
Param
The interaction that was recieved.
PreChatInputCommandRun
readonlyPreChatInputCommandRun:"preChatInputCommandRun"
Emitted before the chatInputRun method of a command is run.
Param
The contextual payload
PreContextMenuCommandRun
readonlyPreContextMenuCommandRun:"preContextMenuCommandRun"
Emitted before the contextMenuRun method of a command is run.
Param
The contextual payload
PrefixedMessage
readonlyPrefixedMessage:"prefixedMessage"
Emitted when a message is created that does starts with a valid prefix.
Param
The created message
PreMessageCommandRun
readonlyPreMessageCommandRun:"preMessageCommandRun"
Emitted before the messageRun method of a command is run.
Param
The contextual payload
PreMessageParsed
readonlyPreMessageParsed:"preMessageParsed"
Emitted when a message is created that was not sent by bots or webhooks.
Param
The created message
PresenceUpdate
readonlyPresenceUpdate:PresenceUpdate
Raw
readonlyRaw:Raw
ShardDisconnect
readonlyShardDisconnect:ShardDisconnect
ShardError
readonlyShardError:ShardError
ShardReady
readonlyShardReady:ShardReady
ShardReconnecting
readonlyShardReconnecting:ShardReconnecting
ShardResume
readonlyShardResume:ShardResume
StageInstanceCreate
readonlyStageInstanceCreate:StageInstanceCreate
StageInstanceDelete
readonlyStageInstanceDelete:StageInstanceDelete
StageInstanceUpdate
readonlyStageInstanceUpdate:StageInstanceUpdate
ThreadCreate
readonlyThreadCreate:ThreadCreate
ThreadDelete
readonlyThreadDelete:ThreadDelete
ThreadListSync
readonlyThreadListSync:ThreadListSync
ThreadMembersUpdate
readonlyThreadMembersUpdate:ThreadMembersUpdate
ThreadMemberUpdate
readonlyThreadMemberUpdate:ThreadMemberUpdate
ThreadUpdate
readonlyThreadUpdate:ThreadUpdate
TypingStart
readonlyTypingStart:TypingStart
UnknownChatInputCommand
readonlyUnknownChatInputCommand:"unknownChatInputCommand"
Emitted when the name of a sent chat input command does not match any loaded commands.
Param
The contextual payload
UnknownContextMenuCommand
readonlyUnknownContextMenuCommand:"unknownContextMenuCommand"
Emitted when the name of a sent context menu command does not match any loaded commands.
Param
The contextual payload
UnknownMessageCommand
readonlyUnknownMessageCommand:"unknownMessageCommand"
Emitted when the name of a sent message command does not match any loaded commands.
Param
The contextual payload
UnknownMessageCommandName
readonlyUnknownMessageCommandName:"unknownMessageCommandName"
Emitted when a message starts with a valid prefix but does not include a command name.
Param
UserUpdate
readonlyUserUpdate:UserUpdate
VoiceServerUpdate
readonlyVoiceServerUpdate:VoiceServerUpdate
VoiceStateUpdate
readonlyVoiceStateUpdate:VoiceStateUpdate
Warn
readonlyWarn:Warn
WebhooksUpdate
readonlyWebhooksUpdate:WebhooksUpdate