Skip to content

AutoModerationActionExecution

classe · Source

Represents the structure of an executed action when an AutoModerationRule is triggered.

Properties

guild

guild: Guild

The guild where this action was executed from. Source

action

action: AutoModerationAction

The action that was executed. Source

ruleId

ruleId: Snowflake

The id of the auto moderation rule this action belongs to. Source

ruleTriggerType

ruleTriggerType: AutoModerationRuleTriggerType

The trigger type of the auto moderation rule which was triggered. Source

userId

userId: Snowflake

The id of the user that triggered this action. Source

channelId

nullable

channelId: Snowflake

The id of the channel where this action was triggered from. Source

messageId

nullable

messageId: Snowflake

The id of the message that triggered this action. Source

alertSystemMessageId

nullable

alertSystemMessageId: Snowflake

The id of any system auto moderation messages posted as a result of this action. Source

content

content: string

The content that triggered this action. This property requires the Intents.FLAGS.MESSAGE_CONTENT privileged gateway intent. Source

matchedKeyword

nullable

matchedKeyword: string

The word or phrase configured in the rule that triggered this action. Source

matchedContent

nullable

matchedContent: string

The substring in content that triggered this action. Source

autoModerationRule

readonly · nullable

autoModerationRule: AutoModerationRule

The auto moderation rule this action belongs to. Source

Unofficial software. Not affiliated with or supported by Discord.