GatewayAutoModerationActionExecutionDispatchData

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

Signature

export interface GatewayAutoModerationActionExecutionDispatchData

Properties

user_id: Snowflake;

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

message_id?: Snowflake;

The id of any user message which content belongs to This field will not be present if message was blocked by AutoMod or content was not part of any message

alert_system_message_id?: Snowflake;

The id of any system auto moderation messages posted as a result of this action This field will not be present if this event does not correspond to an action with type {@link AutoModerationActionType.SendAlertMessage }

content: string;

The user generated text content `MESSAGE_CONTENT` (`1 <<15`) gateway intent is required to receive non-empty values from this field

matched_keyword: string | null;

The word or phrase configured in the rule that triggered the rule

matched_content: string | null;

The substring in content that triggered the rule `MESSAGE_CONTENT` (`1 <<15`) gateway intent is required to receive non-empty values from this field