interface APIAutoModerationRule

external
export interface APIAutoModerationRule

https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-auto-moderation-rule-structure

external
actions : APIAutoModerationAction[]

The actions which will execute when this rule is triggered

external
creator_id : Snowflake

The user id who created this rule

external
enabled : boolean

Whether this rule is enabled

external
event_type : AutoModerationRuleEventType

The rule event type

external
exempt_channels : Snowflake[]

The channel ids that shouldn't be affected by this rule (Maximum of 50)

external
exempt_roles : Snowflake[]

The role ids that shouldn't be affected by this rule (Maximum of 20)

external
guild_id : Snowflake

The guild which this rule belongs to

external
id : Snowflake

The id of this rule

external
name : string

The rule name

external
trigger_metadata : APIAutoModerationRuleTriggerMetadata

The rule trigger metadata

external
trigger_type : AutoModerationRuleTriggerType

The rule trigger type