DiscordLua
discorddiscord
v1.2.4
Install

AutoModerationActionType

Enum
On this page

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

Values

discord.AutoModerationActionType.BlockMessage
1
Block Message. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationActionType.SendAlertMessage
2
Send Alert Message. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationActionType.Timeout
3
Timeout. Use the symbolic name in bot code rather than the raw value.
discord.AutoModerationActionType.BlockMemberInteraction
4
Block Member Interaction. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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