DiscordLua
discorddiscord
v1.2.4
Install

AutoModerationRuleKeywordPresetType

Enum
On this page

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

Values

discord.AutoModerationRuleKeywordPresetType.Profanity
1
Profanity. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationRuleKeywordPresetType.SexualContent
2
Sexual Content. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationRuleKeywordPresetType.Slurs
3
Slurs. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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