DiscordLua
discorddiscord
v1.2.4
Install

AutoModerationRuleEventType

Enum
On this page

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

Values

discord.AutoModerationRuleEventType.MessageSend
1
Message Send. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationRuleEventType.MemberUpdate
2
Member Update. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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