RESTPostAPIAutoModerationRuleJSONBody
Index
Properties
actions
The actions which will execute when this rule is triggered
optionalenabled
Whether this rule is enabled
event_type
The rule event type
optionalexempt_channels
The channel ids that shouldn’t be affected by this rule (Maximum of 50)
optionalexempt_roles
The role ids that shouldn’t be affected by this rule (Maximum of 20)
name
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
https://discord.com/developers/docs/resources/auto-moderation#create-auto-moderation-rule