Interface RESTPostAPIAutoModerationRuleJSONBody

Hierarchy

  • RESTPostAPIAutoModerationRuleJSONBody

Properties

The actions which will execute when this rule is triggered

enabled?: boolean

Whether this rule is enabled

Default

false

The rule event type

exempt_channels?: string[]

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

exempt_roles?: string[]

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

name: string

The rule name

The rule trigger metadata

Can be omitted if the trigger type is AutoModerationRuleTriggerType.HarmfulLink or Spam

The rule trigger type

Generated using TypeDoc