Skip to main content
Module

x/discord_api_types/v10.ts>APIAutoModerationRule

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface APIAutoModerationRule
Re-export
import { type APIAutoModerationRule } from "https://deno.land/x/discord_api_types@0.37.98/v10.ts";

Properties

The id of this rule

guild_id: Snowflake

The guild which this rule belongs to

name: string

The rule name

creator_id: Snowflake

The user id who created this rule

event_type: AutoModerationRuleEventType

The rule event type

trigger_type: AutoModerationRuleTriggerType

The rule trigger type

trigger_metadata: APIAutoModerationRuleTriggerMetadata

The rule trigger metadata

actions: APIAutoModerationAction[]

The actions which will execute when this rule is triggered

enabled: boolean

Whether this rule is enabled

exempt_roles: Snowflake[]

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

exempt_channels: Snowflake[]

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