DiscordLua
discorddiscord
v1.2.4
Install

AutoModerationRuleTriggerType

Enum
On this page

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

Values

discord.AutoModerationRuleTriggerType.Keyword
1
Keyword. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationRuleTriggerType.Spam
3
Spam. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationRuleTriggerType.KeywordPreset
4
Keyword Preset. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationRuleTriggerType.MentionSpam
5
Mention Spam. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationRuleTriggerType.MemberProfile
6
Member Profile. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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