Preview environment

interface APIAutoModerationRule

export interface APIAutoModerationRule

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

The actions which will execute when this rule is triggered

creator_id : Snowflake

The user id who created this rule

enabled : boolean

Whether this rule is enabled

The rule event type

exempt_channels : Snowflake[]

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

exempt_roles : Snowflake[]

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

guild_id : Snowflake

The guild which this rule belongs to

The id of this rule

name : string

The rule name

The rule trigger metadata

The rule trigger type