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
MaxAllowListCountKeywordPreset
Returns the max allowlist keyword count for a KeywordPreset AutoMod rule allowed by Discord.
public const int MaxAllowListCountKeywordPreset = 1000
Field Value
MaxAllowListEntryLength
Returns the max allowlist keyword length for an AutoMod rule allowed by Discord.
public const int MaxAllowListEntryLength = 60
Field Value
MaxCustomBlockMessageLength
Returns the max custom message length AutoMod rule action allowed by Discord.
public const int MaxCustomBlockMessageLength = 150
Field Value
MaxExemptChannels
Returns the max exempt channel count for an AutoMod rule allowed by Discord.
public const int MaxExemptChannels = 50
Field Value
MaxExemptRoles
Returns the max exempt role count for an AutoMod rule allowed by Discord.
public const int MaxExemptRoles = 20
Field Value
MaxKeywordCount
Returns the max keyword count for an AutoMod rule allowed by Discord.
public const int MaxKeywordCount = 1000
Field Value
MaxKeywordLength
Returns the max keyword length for an AutoMod rule allowed by Discord.
public const int MaxKeywordLength = 60
Field Value
MaxMentionLimit
Returns the max mention limit for an AutoMod rule allowed by Discord.
public const int MaxMentionLimit = 50
Field Value
MaxRegexPatternCount
Returns the max regex pattern count for an AutoMod rule allowed by Discord.
public const int MaxRegexPatternCount = 10
Field Value
MaxRegexPatternLength
Returns the max regex pattern length for an AutoMod rule allowed by Discord.
public const int MaxRegexPatternLength = 260
Field Value
MaxTimeoutSeconds
Returns the max timeout duration in seconds for an auto moderation rule action.
public const int MaxTimeoutSeconds = 2419200
Field Value
Properties
Actions
Gets or sets the actions for the rule.
public Optional<AutoModRuleActionProperties[]> Actions { get; set; }
Property Value
AllowList
Gets or sets the allow list for the rule.
public Optional<string[]> AllowList { get; set; }
Property Value
Enabled
Gets or sets whether or not the rule is enabled.
public Optional<bool> Enabled { get; set; }
Property Value
EventType
Gets or sets the event type for the rule.
public Optional<AutoModEventType> EventType { get; set; }
Property Value
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
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
KeywordFilter
Gets or sets the keyword filter for the rule.
public Optional<string[]> KeywordFilter { get; set; }
Property Value
MentionLimit
Gets or sets total mention limit for the rule.
public Optional<int> MentionLimit { get; set; }
Property Value
Name
Gets or sets the name for the rule.
public Optional<string> Name { get; set; }
Property Value
Presets
Gets or sets the presets for the rule. Empty if the rule has no presets.
public Optional<KeywordPresetTypes[]> Presets { get; set; }
Property Value
RegexPatterns
Gets or sets regex patterns for the rule.
public Optional<string[]> RegexPatterns { get; set; }
Property Value
TriggerType
Gets or sets the trigger type for the rule.
public Optional<AutoModTriggerType> TriggerType { get; set; }