DiscordLua
discorddiscord
v1.2.4
Install

Events

Enum
On this page

discord.Events lists the named constants for this enumeration. Prefer these names over hardcoded literals.

Values

discord.Events.ClientReady
ready
Client Ready. Use the symbolic name in bot code rather than the raw value.
discord.Events.Ready
ready
Ready. Use the symbolic name in bot code rather than the raw value.
discord.Events.Error
error
Error. Use the symbolic name in bot code rather than the raw value.
discord.Events.Warn
warn
Warn. Use the symbolic name in bot code rather than the raw value.
discord.Events.Debug
debug
Debug. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageCreate
messageCreate
Message Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageUpdate
messageUpdate
Message Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageDelete
messageDelete
Message Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageBulkDelete
messageDeleteBulk
Message Bulk Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageDeleteBulk
messageDeleteBulk
Message Delete Bulk. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessagePollVoteAdd
messagePollVoteAdd
Message Poll Vote Add. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessagePollVoteRemove
messagePollVoteRemove
Message Poll Vote Remove. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageReactionAdd
messageReactionAdd
Message Reaction Add. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageReactionRemove
messageReactionRemove
Message Reaction Remove. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageReactionRemoveAll
messageReactionRemoveAll
Message Reaction Remove All. Use the symbolic name in bot code rather than the raw value.
discord.Events.MessageReactionRemoveEmoji
messageReactionRemoveEmoji
Message Reaction Remove Emoji. Use the symbolic name in bot code rather than the raw value.
discord.Events.InteractionCreate
interactionCreate
Interaction Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildCreate
guildCreate
Guild Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildUpdate
guildUpdate
Guild Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildDelete
guildDelete
Guild Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildAvailable
guildAvailable
Guild Available. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildUnavailable
guildUnavailable
Guild Unavailable. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildMemberAdd
guildMemberAdd
Guild Member Add. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildMemberRemove
guildMemberRemove
Guild Member Remove. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildMemberUpdate
guildMemberUpdate
Guild Member Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildMemberAvailable
guildMemberAvailable
Guild Member Available. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildMembersChunk
guildMembersChunk
Guild Members Chunk. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildBanAdd
guildBanAdd
Guild Ban Add. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildBanRemove
guildBanRemove
Guild Ban Remove. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildRoleCreate
roleCreate
Guild Role Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildRoleUpdate
roleUpdate
Guild Role Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildRoleDelete
roleDelete
Guild Role Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildIntegrationsUpdate
guildIntegrationsUpdate
Guild Integrations Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildAuditLogEntryCreate
guildAuditLogEntryCreate
Guild Audit Log Entry Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildScheduledEventCreate
guildScheduledEventCreate
Guild Scheduled Event Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildScheduledEventUpdate
guildScheduledEventUpdate
Guild Scheduled Event Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildScheduledEventDelete
guildScheduledEventDelete
Guild Scheduled Event Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildScheduledEventUserAdd
guildScheduledEventUserAdd
Guild Scheduled Event User Add. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildScheduledEventUserRemove
guildScheduledEventUserRemove
Guild Scheduled Event User Remove. Use the symbolic name in bot code rather than the raw value.
discord.Events.ChannelCreate
channelCreate
Channel Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.ChannelUpdate
channelUpdate
Channel Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.ChannelDelete
channelDelete
Channel Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.ChannelPinsUpdate
channelPinsUpdate
Channel Pins Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.ThreadCreate
threadCreate
Thread Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.ThreadUpdate
threadUpdate
Thread Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.ThreadDelete
threadDelete
Thread Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.ThreadListSync
threadListSync
Thread List Sync. Use the symbolic name in bot code rather than the raw value.
discord.Events.ThreadMemberUpdate
threadMemberUpdate
Thread Member Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.ThreadMembersUpdate
threadMembersUpdate
Thread Members Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.PresenceUpdate
presenceUpdate
Presence Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.VoiceStateUpdate
voiceStateUpdate
Voice State Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.VoiceServerUpdate
voiceServerUpdate
Voice Server Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.VoiceChannelEffectSend
voiceChannelEffectSend
Voice Channel Effect Send. Use the symbolic name in bot code rather than the raw value.
discord.Events.Resumed
resumed
Resumed. Use the symbolic name in bot code rather than the raw value.
discord.Events.IntegrationCreate
integrationCreate
Integration Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.IntegrationUpdate
integrationUpdate
Integration Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.IntegrationDelete
integrationDelete
Integration Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.TypingStart
typingStart
Typing Start. Use the symbolic name in bot code rather than the raw value.
discord.Events.WebhooksUpdate
webhooksUpdate
Webhooks Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.WebhookUpdate
webhooksUpdate
Webhook Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.InviteCreate
inviteCreate
Invite Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.InviteDelete
inviteDelete
Invite Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.UserUpdate
userUpdate
User Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.EmojiCreate
emojiCreate
Emoji Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.EmojiUpdate
emojiUpdate
Emoji Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.EmojiDelete
emojiDelete
Emoji Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.StickerCreate
stickerCreate
Sticker Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.StickerUpdate
stickerUpdate
Sticker Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.StickerDelete
stickerDelete
Sticker Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.ApplicationCommandPermissionsUpdate
applicationCommandPermissionsUpdate
Application Command Permissions Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.AutoModerationActionExecution
autoModerationActionExecution
Auto Moderation Action Execution. Use the symbolic name in bot code rather than the raw value.
discord.Events.AutoModerationRuleCreate
autoModerationRuleCreate
Auto Moderation Rule Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.AutoModerationRuleDelete
autoModerationRuleDelete
Auto Moderation Rule Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.AutoModerationRuleUpdate
autoModerationRuleUpdate
Auto Moderation Rule Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.EntitlementCreate
entitlementCreate
Entitlement Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.EntitlementUpdate
entitlementUpdate
Entitlement Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.EntitlementDelete
entitlementDelete
Entitlement Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.StageInstanceCreate
stageInstanceCreate
Stage Instance Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.StageInstanceUpdate
stageInstanceUpdate
Stage Instance Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.StageInstanceDelete
stageInstanceDelete
Stage Instance Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.SubscriptionCreate
subscriptionCreate
Subscription Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.SubscriptionUpdate
subscriptionUpdate
Subscription Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.SubscriptionDelete
subscriptionDelete
Subscription Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.SoundboardSounds
soundboardSounds
Soundboard Sounds. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildSoundboardSoundCreate
guildSoundboardSoundCreate
Guild Soundboard Sound Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildSoundboardSoundUpdate
guildSoundboardSoundUpdate
Guild Soundboard Sound Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildSoundboardSoundDelete
guildSoundboardSoundDelete
Guild Soundboard Sound Delete. Use the symbolic name in bot code rather than the raw value.
discord.Events.GuildSoundboardSoundsUpdate
guildSoundboardSoundsUpdate
Guild Soundboard Sounds Update. Use the symbolic name in bot code rather than the raw value.
discord.Events.ShardDisconnect
shardDisconnect
Shard Disconnect. Use the symbolic name in bot code rather than the raw value.
discord.Events.ShardError
shardError
Shard Error. Use the symbolic name in bot code rather than the raw value.
discord.Events.ShardReady
shardReady
Shard Ready. Use the symbolic name in bot code rather than the raw value.
discord.Events.ShardReconnecting
shardReconnecting
Shard Reconnecting. Use the symbolic name in bot code rather than the raw value.
discord.Events.ShardResume
shardResume
Shard Resume. Use the symbolic name in bot code rather than the raw value.
discord.Events.ShardCreate
shardCreate
Shard Create. Use the symbolic name in bot code rather than the raw value.
discord.Events.Invalidated
invalidated
Invalidated. Use the symbolic name in bot code rather than the raw value.
discord.Events.CacheSweep
cacheSweep
Cache Sweep. Use the symbolic name in bot code rather than the raw value.
discord.Events.WebSocketShardClose
close
Web Socket Shard Close. Use the symbolic name in bot code rather than the raw value.
discord.Events.WebSocketShardAllReady
allReady
Web 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

lua
local discord = require("discord")
client:on(discord.Events.ClientReady, function(...)
end)
Search Ctrl K Navigate Open Esc