Table of Contents

Class AutoModRuleProperties

Namespace
Discord
Assembly
Discord.Net.Core.dll

Provides properties used to modify a IAutoModRule.

public class AutoModRuleProperties
Inheritance
AutoModRuleProperties
Inherited Members

Fields

MaxAllowListCountKeyword

Returns the max allowlist keyword count for a Keyword AutoMod rule allowed by Discord.

public const int MaxAllowListCountKeyword = 100

Field Value

int

MaxAllowListCountKeywordPreset

Returns the max allowlist keyword count for a KeywordPreset AutoMod rule allowed by Discord.

public const int MaxAllowListCountKeywordPreset = 1000

Field Value

int

MaxAllowListEntryLength

Returns the max allowlist keyword length for an AutoMod rule allowed by Discord.

public const int MaxAllowListEntryLength = 60

Field Value

int

MaxCustomBlockMessageLength

Returns the max custom message length AutoMod rule action allowed by Discord.

public const int MaxCustomBlockMessageLength = 150

Field Value

int

MaxExemptChannels

Returns the max exempt channel count for an AutoMod rule allowed by Discord.

public const int MaxExemptChannels = 50

Field Value

int

MaxExemptRoles

Returns the max exempt role count for an AutoMod rule allowed by Discord.

public const int MaxExemptRoles = 20

Field Value

int

MaxKeywordCount

Returns the max keyword count for an AutoMod rule allowed by Discord.

public const int MaxKeywordCount = 1000

Field Value

int

MaxKeywordLength

Returns the max keyword length for an AutoMod rule allowed by Discord.

public const int MaxKeywordLength = 60

Field Value

int

MaxMentionLimit

Returns the max mention limit for an AutoMod rule allowed by Discord.

public const int MaxMentionLimit = 50

Field Value

int

MaxRegexPatternCount

Returns the max regex pattern count for an AutoMod rule allowed by Discord.

public const int MaxRegexPatternCount = 10

Field Value

int

MaxRegexPatternLength

Returns the max regex pattern length for an AutoMod rule allowed by Discord.

public const int MaxRegexPatternLength = 260

Field Value

int

MaxTimeoutSeconds

Returns the max timeout duration in seconds for an auto moderation rule action.

public const int MaxTimeoutSeconds = 2419200

Field Value

int

Properties

Actions

Gets or sets the actions for the rule.

public Optional<AutoModRuleActionProperties[]> Actions { get; set; }

Property Value

Optional<AutoModRuleActionProperties[]>

AllowList

Gets or sets the allow list for the rule.

public Optional<string[]> AllowList { get; set; }

Property Value

Optional<string[]>

Enabled

Gets or sets whether or not the rule is enabled.

public Optional<bool> Enabled { get; set; }

Property Value

Optional<bool>

EventType

Gets or sets the event type for the rule.

public Optional<AutoModEventType> EventType { get; set; }

Property Value

Optional<AutoModEventType>

ExemptChannels

Gets or sets the exempt channels for the rule. Empty if the rule has no exempt channels.

public Optional<ulong[]> ExemptChannels { get; set; }

Property Value

Optional<ulong[]>

ExemptRoles

Gets or sets the exempt roles for the rule. Empty if the rule has no exempt roles.

public Optional<ulong[]> ExemptRoles { get; set; }

Property Value

Optional<ulong[]>

KeywordFilter

Gets or sets the keyword filter for the rule.

public Optional<string[]> KeywordFilter { get; set; }

Property Value

Optional<string[]>

MentionLimit

Gets or sets total mention limit for the rule.

public Optional<int> MentionLimit { get; set; }

Property Value

Optional<int>

Name

Gets or sets the name for the rule.

public Optional<string> Name { get; set; }

Property Value

Optional<string>

Presets

Gets or sets the presets for the rule. Empty if the rule has no presets.

public Optional<KeywordPresetTypes[]> Presets { get; set; }

Property Value

Optional<KeywordPresetTypes[]>

RegexPatterns

Gets or sets regex patterns for the rule.

public Optional<string[]> RegexPatterns { get; set; }

Property Value

Optional<string[]>

TriggerType

Gets or sets the trigger type for the rule.

public Optional<AutoModTriggerType> TriggerType { get; set; }

Property Value

Optional<AutoModTriggerType>