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 | readonly 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 | readonly string[] | No | The substrings that will be exempt from triggering AutoModerationRuleTriggerType.Keyword, AutoModerationRuleTriggerType.KeywordPreset, and AutoModerationRuleTriggerType.MemberProfile |
reason | string | Yes | The reason for changing the allow list of this auto moderation rule |
Sets whether this auto moderation rule should be enabled.
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 | ReadonlyCollection<Snowflake, GuildBasedChannel> | readonly 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 | ReadonlyCollection<Snowflake, Role> | readonly 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.
Sets whether to enable mention raid protection for this auto moderation rule.
Sets the mention total limit for this auto moderation rule.
Sets the name for this auto moderation rule.
Sets the presets for this auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
presets | readonly 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.