APIAutoModerationRule
https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-auto-moderation-rule-structure
Signature
export interface APIAutoModerationRuleProperties
11Methods
0No methods.
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)