RESTPostAPIAutoModerationRuleJSONBody
https://discord.com/developers/docs/resources/auto-moderation#create-auto-moderation-rule
Signature
export interface RESTPostAPIAutoModerationRuleJSONBodyProperties
8Methods
0No methods.
Properties
name: string;The rule name
event_type: AutoModerationRuleEventType;The rule event type
trigger_type: AutoModerationRuleTriggerType;The rule trigger type
trigger_metadata?: APIAutoModerationRuleTriggerMetadata | undefined;The rule trigger metadata Can be omitted if the trigger type is {@link AutoModerationRuleTriggerType.HarmfulLink } or {@link AutoModerationRuleTriggerType.Spam}
actions: APIAutoModerationAction[];The actions which will execute when this rule is triggered
enabled?: boolean | undefined;Whether this rule is enabled
@defaultfalse
exempt_roles?: Snowflake[] | undefined;The role ids that shouldn't be affected by this rule (Maximum of 20)
exempt_channels?: Snowflake[] | undefined;The channel ids that shouldn't be affected by this rule (Maximum of 50)