Preview environment

interface RESTPostAPIAutoModerationRuleJSONBody

export interface RESTPostAPIAutoModerationRuleJSONBody

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

The actions which will execute when this rule is triggered

optional
enabled? : boolean | undefined

Whether this rule is enabled false

The rule event type

optional
exempt_channels? : Snowflake[] | undefined

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

optional
exempt_roles? : Snowflake[] | undefined

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

name : string

The rule name

optional
trigger_metadata? : APIAutoModerationRuleTriggerMetadata | undefined

The rule trigger metadataCan be omitted if the trigger type is AutoModerationRuleTriggerType or Spam

The rule trigger type