interface RESTPostAPIAutoModerationRuleJSONBody

external
export interface RESTPostAPIAutoModerationRuleJSONBody

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

external
actions : APIAutoModerationAction[]

The actions which will execute when this rule is triggered

optionalexternal
enabled? : boolean | undefined

Whether this rule is enabled false

external
event_type : AutoModerationRuleEventType

The rule event type

optionalexternal
exempt_channels? : Snowflake[] | undefined

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

optionalexternal
exempt_roles? : Snowflake[] | undefined

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

external
name : string

The rule name

optionalexternal
trigger_metadata? : APIAutoModerationRuleTriggerMetadata | undefined

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

external
trigger_type : AutoModerationRuleTriggerType

The rule trigger type