DiscordLua
discorddiscord
v1.2.4
Install

AuditLogEvent

Enum
On this page

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

Values

discord.AuditLogEvent.GuildUpdate
1
Guild Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.ChannelCreate
10
Channel Create. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.ChannelUpdate
11
Channel Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.ChannelDelete
12
Channel Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.ChannelOverwriteCreate
13
Channel Overwrite Create. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.ChannelOverwriteUpdate
14
Channel Overwrite Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.ChannelOverwriteDelete
15
Channel Overwrite Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.MemberKick
20
Member Kick. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.MemberPrune
21
Member Prune. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.MemberBanAdd
22
Member Ban Add. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.MemberBanRemove
23
Member Ban Remove. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.MemberUpdate
24
Member Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.MemberRoleUpdate
25
Member Role Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.MemberMove
26
Member Move. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.MemberDisconnect
27
Member Disconnect. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.BotAdd
28
Bot Add. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.RoleCreate
30
Role Create. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.RoleUpdate
31
Role Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.RoleDelete
32
Role Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.InviteCreate
40
Invite Create. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.InviteUpdate
41
Invite Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.InviteDelete
42
Invite Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.WebhookCreate
50
Webhook Create. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.WebhookUpdate
51
Webhook Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.WebhookDelete
52
Webhook Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.EmojiCreate
60
Emoji Create. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.EmojiUpdate
61
Emoji Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.EmojiDelete
62
Emoji Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.MessageDelete
72
Message Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.MessageBulkDelete
73
Message Bulk Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.MessagePin
74
Message Pin. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.MessageUnpin
75
Message Unpin. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.IntegrationCreate
80
Integration Create. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.IntegrationUpdate
81
Integration Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.IntegrationDelete
82
Integration Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.StageInstanceCreate
83
Stage Instance Create. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.StageInstanceUpdate
84
Stage Instance Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.StageInstanceDelete
85
Stage Instance Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.StickerCreate
90
Sticker Create. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.StickerUpdate
91
Sticker Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.StickerDelete
92
Sticker Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.GuildScheduledEventCreate
100
Guild Scheduled Event Create. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.GuildScheduledEventUpdate
101
Guild Scheduled Event Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.GuildScheduledEventDelete
102
Guild Scheduled Event Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.ThreadCreate
110
Thread Create. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.ThreadUpdate
111
Thread Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.ThreadDelete
112
Thread Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.ApplicationCommandPermissionUpdate
121
Application Command Permission Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.AutoModerationRuleCreate
140
Auto Moderation Rule Create. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.AutoModerationRuleUpdate
141
Auto Moderation Rule Update. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.AutoModerationRuleDelete
142
Auto Moderation Rule Delete. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.AutoModerationBlockMessage
143
Auto Moderation Block Message. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.AutoModerationFlagToChannel
144
Auto Moderation Flag To Channel. Use the symbolic name in bot code rather than the raw value.
discord.AuditLogEvent.AutoModerationUserCommunicationDisabled
145
Auto Moderation User Communication Disabled. Use the symbolic name in bot code rather than the raw value.

Usage

Read members as discord.AuditLogEvent.Name. Do not hard-code numeric literals when a symbolic name exists.

Example

lua
local discord = require("discord")
print(discord.AuditLogEvent.GuildUpdate)
Search Ctrl K Navigate Open Esc