Skip to main content

DiscordAutoModerationActionExecution

Documentation


Documentation / @discordeno/types / DiscordAutoModerationActionExecution

Interface: DiscordAutoModerationActionExecution

Defined in: discord/gateway.ts:346

https://docs.discord.com/developers/events/gateway-events#auto-moderation-action-execution-auto-moderation-action-execution-event-fields

Properties

action

action: DiscordAutoModerationAction

Defined in: discord/gateway.ts:350

Action which was executed


alert_system_message_id?

optional alert_system_message_id?: string

Defined in: discord/gateway.ts:362

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


channel_id?

optional channel_id?: string

Defined in: discord/gateway.ts:358

The id of the channel in which user content was posted


content

content: string

Defined in: discord/gateway.ts:364

The content from the user


guild_id

guild_id: string

Defined in: discord/gateway.ts:348

The id of the guild


matched_content

matched_content: string | null

Defined in: discord/gateway.ts:368

The substring in content that triggered the rule


matched_keyword

matched_keyword: string | null

Defined in: discord/gateway.ts:366

The word or phrase that triggerred the rule.


message_id?

optional message_id?: string

Defined in: discord/gateway.ts:360

The id of the message. Will not exist if message was blocked by automod or content was not part of any message


rule_id

rule_id: string

Defined in: discord/gateway.ts:352

The id of the rule that was executed


rule_trigger_type

rule_trigger_type: AutoModerationTriggerTypes

Defined in: discord/gateway.ts:354

The trigger type of the rule that was executed.


user_id

user_id: string

Defined in: discord/gateway.ts:356

The id of the user which generated the content which triggered the rule