Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/discord_api_types/payloads/v9/autoModeration.ts>APIAutoModerationRule

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

Properties

id: Snowflake

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)