AutoModerationActionExecution
ClassOn this page
AutoModerationActionExecution is a DiscordLua class representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.
Properties
- Name
action- Type
any- Access
- readonly
- Description
- Instance field
AutoModerationActionExecution.action. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
- Name
alertSystemMessageId- Type
any- Access
- readonly
- Description
- Instance field
AutoModerationActionExecution.alertSystemMessageId. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
- Name
channelId- Type
any- Access
- readonly
- Description
- Instance field
AutoModerationActionExecution.channelId. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
- Name
client- Type
any- Access
- readonly
- Description
- Owning Client instance used for REST, cache, and event dispatch.
- Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
- Name
content- Type
any- Access
- readonly
- Description
- Text content of this AutoModerationActionExecution.
- Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
- Name
guildId- Type
any- Access
- readonly
- Description
- Instance field
AutoModerationActionExecution.guildId. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
- Name
matchedContent- Type
any- Access
- readonly
- Description
- Instance field
AutoModerationActionExecution.matchedContent. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
- Name
matchedKeyword- Type
any- Access
- readonly
- Description
- Instance field
AutoModerationActionExecution.matchedKeyword. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
- Name
messageId- Type
any- Access
- readonly
- Description
- Instance field
AutoModerationActionExecution.messageId. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
- Name
raw- Type
any- Access
- readonly
- Description
- Instance field
AutoModerationActionExecution.raw. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
- Name
ruleId- Type
any- Access
- readonly
- Description
- Instance field
AutoModerationActionExecution.ruleId. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
- Name
ruleTriggerType- Type
any- Access
- readonly
- Description
- Instance field
AutoModerationActionExecution.ruleTriggerType. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
- Name
userId- Type
any- Access
- readonly
- Description
- Instance field
AutoModerationActionExecution.userId. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this AutoModerationActionExecution.
Methods
AutoModerationActionExecution:autoModerationRule()
#Performs auto moderation rule on this AutoModerationActionExecution. Call it from bot code when you need that operation on the current object.
Signature
AutoModerationActionExecution:autoModerationRule() Parameters
No parameters.
Returns
any.
Example
local discord = require("discord")
-- object is a AutoModerationActionExecution
object:autoModerationRule()AutoModerationActionExecution:channel()
#Performs channel on this AutoModerationActionExecution. Call it from bot code when you need that operation on the current object.
Signature
AutoModerationActionExecution:channel() Parameters
No parameters.
Returns
AutoModerationActionExecution — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a AutoModerationActionExecution
object:channel()AutoModerationActionExecution:guild()
#Performs guild on this AutoModerationActionExecution. Call it from bot code when you need that operation on the current object.
Signature
AutoModerationActionExecution:guild() Parameters
No parameters.
Returns
AutoModerationActionExecution — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a AutoModerationActionExecution
object:guild()AutoModerationActionExecution:member()
#Performs member on this AutoModerationActionExecution. Call it from bot code when you need that operation on the current object.
Signature
AutoModerationActionExecution:member() Parameters
No parameters.
Returns
any.
Example
local discord = require("discord")
-- object is a AutoModerationActionExecution
object:member()AutoModerationActionExecution:user()
#Performs user on this AutoModerationActionExecution. Call it from bot code when you need that operation on the current object.
Signature
AutoModerationActionExecution:user() Parameters
No parameters.
Returns
AutoModerationActionExecution — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a AutoModerationActionExecution
object:user()Examples
Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.
Related APIs
ActionRow · Activity · ActivityInstance · ActivityLocation · AnonymousGuild · ApplicationCommand · ApplicationRoleConnectionMetadata · Attachment
Version: discord 1.2.4 · runtime 1.0.0