import { type RESTPostAPIAutoModerationRuleJSONBody } from "https://deno.land/x/discord_api_types@0.37.55/v10.ts";
Properties
event_type: AutoModerationRuleEventType
The rule event type
trigger_type: AutoModerationRuleTriggerType
The rule trigger type
optional
trigger_metadata: APIAutoModerationRuleTriggerMetadata | undefinedThe rule trigger metadata
Can be omitted if the trigger type is AutoModerationRuleTriggerType.HarmfulLink or AutoModerationRuleTriggerType.Spam
actions: APIAutoModerationAction[]
The actions which will execute when this rule is triggered
optional
exempt_roles: Snowflake[] | undefinedThe role ids that shouldn't be affected by this rule (Maximum of 20)
optional
exempt_channels: Snowflake[] | undefinedThe channel ids that shouldn't be affected by this rule (Maximum of 50)