Represents an auto moderation rule.
Extends
BaseDeletes this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
reason | string | Yes | The reason for deleting this auto moderation rule |
Edits this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
options | AutoModerationRuleEditOptions | No | Options for editing this auto moderation rule |
Sets the actions for this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
actions | AutoModerationActionOptions[] | No | The actions of this auto moderation rule |
reason | string | Yes | The reason for changing the actions of this auto moderation rule |
Sets the allow list for this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
allowList | string[] | No | The substrings that will be exempt from triggering and |
reason | string | Yes | The reason for changing the allow list of this auto moderation rule |
Sets whether this auto moderation rule should be enabled.
Name | Type | Optional | Description |
---|---|---|---|
enabled | boolean | Yes | Whether to enable this auto moderation rule |
reason | string | Yes | The reason for enabling or disabling this auto moderation rule |
Sets the event type for this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
eventType | AutoModerationRuleEventType | No | The event type of this auto moderation rule |
reason | string | Yes | The reason for changing the event type of this auto moderation rule |
Sets the exempt channels for this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
exemptChannels | Collection<Snowflake, GuildBasedChannel> | GuildChannelResolvable[] | No | The channels that should not be affected by the auto moderation rule |
reason | string | Yes | The reason for changing the exempt channels of this auto moderation rule |
Sets the exempt roles for this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
exemptRoles | Collection<Snowflake, Role> | RoleResolvable[] | No | The roles that should not be affected by the auto moderation rule |
reason | string | Yes | The reason for changing the exempt roles of this auto moderation rule |
Sets the keyword filter for this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
keywordFilter | string[] | No | The keyword filter of this auto moderation rule |
reason | string | Yes | The reason for changing the keyword filter of this auto moderation rule |
Sets whether to enable mention raid protection for this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
mentionRaidProtectionEnabled | boolean | No | Whether to enable mention raid protection for this auto moderation rule |
reason | string | Yes | The reason for changing the mention raid protection of this auto moderation rule |
Sets the mention total limit for this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
mentionTotalLimit | number | No | The total number of unique role and user mentions allowed per message |
reason | string | Yes | The reason for changing the mention total limit of this auto moderation rule |
Sets the name for this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
name | string | No | The name of this auto moderation rule |
reason | string | Yes | The reason for changing the name of this auto moderation rule |
Sets the presets for this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
presets | AutoModerationRuleKeywordPresetType[] | No | The presets of this auto moderation rule |
reason | string | Yes | The reason for changing the presets of this auto moderation rule |
Sets the regular expression patterns for this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
regexPatterns | string[] | No | The regular expression patterns of this auto moderation rule Only Rust-flavored regular expressions are supported. |
reason | string | Yes | The reason for changing the regular expression patterns of this auto moderation rule |
Name | Type | Optional | Description |
---|---|---|---|
...props | Record<string, boolean | string>[] | No | None |