Skip to main content
Version: 0.37.82

RESTPostAPIAutoModerationRuleJSONBody

Index

Properties

actions

The actions which will execute when this rule is triggered

optionalenabled

enabled?: boolean

Whether this rule is enabled

@default

false

event_type

event_type: MessageSend

The rule event type

optionalexempt_channels

exempt_channels?: string[]

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

optionalexempt_roles

exempt_roles?: string[]

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

name

name: string

The rule name

optionaltrigger_metadata

The rule trigger metadata

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

trigger_type

The rule trigger type