Skip to main content
Version: 0.37.44

APIAutoModerationRule

Index

Properties

actions

The actions which will execute when this rule is triggered

creator_id

creator_id: string

The user id who created this rule

enabled

enabled: boolean

Whether this rule is enabled

event_type

event_type: MessageSend

The rule event type

exempt_channels

exempt_channels: string[]

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

exempt_roles

exempt_roles: string[]

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

guild_id

guild_id: string

The guild which this rule belongs to

id

id: string

The id of this rule

name

name: string

The rule name

trigger_metadata

The rule trigger metadata

trigger_type

The rule trigger type