Skip to main content
Module

x/discord_api_types/v9.ts>RESTPostAPIAutoModerationRuleJSONBody

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface RESTPostAPIAutoModerationRuleJSONBody
import { type RESTPostAPIAutoModerationRuleJSONBody } from "https://deno.land/x/discord_api_types@0.37.82/v9.ts";

Properties

name: string

The rule name

The rule event type

The rule trigger type

optional
trigger_metadata: APIAutoModerationRuleTriggerMetadata | undefined

The rule trigger metadata

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

The actions which will execute when this rule is triggered

optional
enabled: boolean | undefined

Whether this rule is enabled

optional
exempt_roles: Snowflake[] | undefined

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

optional
exempt_channels: Snowflake[] | undefined

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