Skip to main content

DiscordAutoModerationActionExecution

@discordeno/bot


Documentation / @discordeno/bot / DiscordAutoModerationActionExecution

Interface: DiscordAutoModerationActionExecution

Defined in: packages/types/dist/types/discord.d.ts:2090

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

Properties

action

action: DiscordAutoModerationAction

Defined in: packages/types/dist/types/discord.d.ts:2100

Action which was executed


alert_system_message_id?

optional alert_system_message_id: null | string

Defined in: packages/types/dist/types/discord.d.ts:2108

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


channel_id?

optional channel_id: null | string

Defined in: packages/types/dist/types/discord.d.ts:2104

The id of the channel in which user content was posted


content

content: string

Defined in: packages/types/dist/types/discord.d.ts:2098

The content from the user


guild_id

guild_id: string

Defined in: packages/types/dist/types/discord.d.ts:2092

The id of the guild


matched_content

matched_content: null | string

Defined in: packages/types/dist/types/discord.d.ts:2112

The substring in content that triggered the rule


matched_keyword

matched_keyword: null | string

Defined in: packages/types/dist/types/discord.d.ts:2110

The word or phrase that triggerred the rule.


message_id?

optional message_id: null | string

Defined in: packages/types/dist/types/discord.d.ts:2106

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: packages/types/dist/types/discord.d.ts:2094

The id of the rule that was executed


rule_trigger_type

rule_trigger_type: AutoModerationTriggerTypes

Defined in: packages/types/dist/types/discord.d.ts:2102

The trigger type of the rule that was executed.


user_id

user_id: string

Defined in: packages/types/dist/types/discord.d.ts:2096

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