Events
EnumOn this page
discord.Events lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.Events.ClientReadyreadyClient Ready. Use the symbolic name in bot code rather than the raw value.
discord.Events.ReadyreadyReady. Use the symbolic name in bot code rather than the raw value.
discord.Events.ErrorerrorError. Use the symbolic name in bot code rather than the raw value.
discord.Events.WarnwarnWarn. Use the symbolic name in bot code rather than the raw value.
discord.Events.DebugdebugDebug. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageCreatemessageCreateMessage Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageUpdatemessageUpdateMessage Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageDeletemessageDeleteMessage Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageBulkDeletemessageDeleteBulkMessage Bulk Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageDeleteBulkmessageDeleteBulkMessage Delete Bulk. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessagePollVoteAddmessagePollVoteAddMessage Poll Vote Add. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessagePollVoteRemovemessagePollVoteRemoveMessage Poll Vote Remove. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageReactionAddmessageReactionAddMessage Reaction Add. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageReactionRemovemessageReactionRemoveMessage Reaction Remove. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageReactionRemoveAllmessageReactionRemoveAllMessage Reaction Remove All. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageReactionRemoveEmojimessageReactionRemoveEmojiMessage Reaction Remove Emoji. Use the symbolic name in bot code rather than the raw value.
discord.Events.InteractionCreateinteractionCreateInteraction Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildCreateguildCreateGuild Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildUpdateguildUpdateGuild Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildDeleteguildDeleteGuild Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildAvailableguildAvailableGuild Available. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildMemberAddguildMemberAddGuild Member Add. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildMemberRemoveguildMemberRemoveGuild Member Remove. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildMemberUpdateguildMemberUpdateGuild Member Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildMemberAvailableguildMemberAvailableGuild Member Available. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildMembersChunkguildMembersChunkGuild Members Chunk. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildBanAddguildBanAddGuild Ban Add. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildBanRemoveguildBanRemoveGuild Ban Remove. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildRoleCreateroleCreateGuild Role Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildRoleUpdateroleUpdateGuild Role Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildRoleDeleteroleDeleteGuild Role Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildIntegrationsUpdateguildIntegrationsUpdateGuild Integrations Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildAuditLogEntryCreateguildAuditLogEntryCreateGuild Audit Log Entry Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildScheduledEventCreateguildScheduledEventCreateGuild Scheduled Event Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildScheduledEventUpdateguildScheduledEventUpdateGuild Scheduled Event Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildScheduledEventDeleteguildScheduledEventDeleteGuild Scheduled Event Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildScheduledEventUserAddguildScheduledEventUserAddGuild Scheduled Event User Add. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildScheduledEventUserRemoveguildScheduledEventUserRemoveGuild Scheduled Event User Remove. Use the symbolic name in bot code rather than the raw value.
discord.Events.ChannelCreatechannelCreateChannel Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.ChannelUpdatechannelUpdateChannel Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.ChannelDeletechannelDeleteChannel Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.ChannelPinsUpdatechannelPinsUpdateChannel Pins Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.ThreadCreatethreadCreateThread Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.ThreadUpdatethreadUpdateThread Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.ThreadDeletethreadDeleteThread Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.ThreadListSyncthreadListSyncThread List Sync. Use the symbolic name in bot code rather than the raw value.
discord.Events.ThreadMemberUpdatethreadMemberUpdateThread Member Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.ThreadMembersUpdatethreadMembersUpdateThread Members Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.PresenceUpdatepresenceUpdatePresence Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.VoiceStateUpdatevoiceStateUpdateVoice State Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.VoiceServerUpdatevoiceServerUpdateVoice Server Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.VoiceChannelEffectSendvoiceChannelEffectSendVoice Channel Effect Send. Use the symbolic name in bot code rather than the raw value.
discord.Events.ResumedresumedResumed. Use the symbolic name in bot code rather than the raw value.
discord.Events.IntegrationCreateintegrationCreateIntegration Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.IntegrationUpdateintegrationUpdateIntegration Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.IntegrationDeleteintegrationDeleteIntegration Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.TypingStarttypingStartTyping Start. Use the symbolic name in bot code rather than the raw value.
discord.Events.WebhooksUpdatewebhooksUpdateWebhooks Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.WebhookUpdatewebhooksUpdateWebhook Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.InviteCreateinviteCreateInvite Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.InviteDeleteinviteDeleteInvite Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.UserUpdateuserUpdateUser Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.EmojiCreateemojiCreateEmoji Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.EmojiUpdateemojiUpdateEmoji Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.EmojiDeleteemojiDeleteEmoji Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.StickerCreatestickerCreateSticker Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.StickerUpdatestickerUpdateSticker Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.StickerDeletestickerDeleteSticker Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.ApplicationCommandPermissionsUpdateapplicationCommandPermissionsUpdateApplication Command Permissions Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.AutoModerationActionExecutionautoModerationActionExecutionAuto Moderation Action Execution. Use the symbolic name in bot code rather than the raw value.
discord.Events.AutoModerationRuleCreateautoModerationRuleCreateAuto Moderation Rule Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.AutoModerationRuleDeleteautoModerationRuleDeleteAuto Moderation Rule Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.AutoModerationRuleUpdateautoModerationRuleUpdateAuto Moderation Rule Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.EntitlementCreateentitlementCreateEntitlement Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.EntitlementUpdateentitlementUpdateEntitlement Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.EntitlementDeleteentitlementDeleteEntitlement Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.StageInstanceCreatestageInstanceCreateStage Instance Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.StageInstanceUpdatestageInstanceUpdateStage Instance Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.StageInstanceDeletestageInstanceDeleteStage Instance Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.SubscriptionCreatesubscriptionCreateSubscription Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.SubscriptionUpdatesubscriptionUpdateSubscription Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.SubscriptionDeletesubscriptionDeleteSubscription Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.SoundboardSoundssoundboardSoundsSoundboard Sounds. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildSoundboardSoundCreateguildSoundboardSoundCreateGuild Soundboard Sound Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildSoundboardSoundUpdateguildSoundboardSoundUpdateGuild Soundboard Sound Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildSoundboardSoundDeleteguildSoundboardSoundDeleteGuild Soundboard Sound Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildSoundboardSoundsUpdateguildSoundboardSoundsUpdateGuild Soundboard Sounds Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.ShardDisconnectshardDisconnectShard Disconnect. Use the symbolic name in bot code rather than the raw value.
discord.Events.ShardErrorshardErrorShard Error. Use the symbolic name in bot code rather than the raw value.
discord.Events.ShardReadyshardReadyShard Ready. Use the symbolic name in bot code rather than the raw value.
discord.Events.ShardReconnectingshardReconnectingShard Reconnecting. Use the symbolic name in bot code rather than the raw value.
discord.Events.ShardResumeshardResumeShard Resume. Use the symbolic name in bot code rather than the raw value.
discord.Events.ShardCreateshardCreateShard Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.InvalidatedinvalidatedInvalidated. Use the symbolic name in bot code rather than the raw value.
discord.Events.CacheSweepcacheSweepCache Sweep. Use the symbolic name in bot code rather than the raw value.
discord.Events.WebSocketShardClosecloseWeb Socket Shard Close. Use the symbolic name in bot code rather than the raw value.
discord.Events.WebSocketShardAllReadyallReadyWeb Socket Shard All Ready. Use the symbolic name in bot code rather than the raw value.
Usage
Read members as discord.Events.Name. Do not hard-code numeric literals when a symbolic name exists.
Example
local discord = require("discord")
client:on(discord.Events.ClientReady, function(...)
end)