AutoModerationRuleTriggerType
EnumOn this page
discord.AutoModerationRuleTriggerType lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.AutoModerationRuleTriggerType.Keyword1Keyword. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationRuleTriggerType.Spam3Spam. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationRuleTriggerType.KeywordPreset4Keyword Preset. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationRuleTriggerType.MentionSpam5Mention Spam. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationRuleTriggerType.MemberProfile6Member 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
local discord = require("discord")
print(discord.AutoModerationRuleTriggerType.Keyword)