Table of Contents

Class AutoModerationRuleTriggerMetadataProperties

Namespace
NetCord
Assembly
NetCord.dll
public class AutoModerationRuleTriggerMetadataProperties
Inheritance
AutoModerationRuleTriggerMetadataProperties
Inherited Members

Constructors

AutoModerationRuleTriggerMetadataProperties()

public AutoModerationRuleTriggerMetadataProperties()

Properties

AllowList

[JsonPropertyName("allow_list")]
public IEnumerable<string>? AllowList { get; set; }

Property Value

IEnumerable<string>

KeywordFilter

[JsonPropertyName("keyword_filter")]
public IEnumerable<string>? KeywordFilter { get; set; }

Property Value

IEnumerable<string>

MentionRaidProtectionEnabled

[JsonPropertyName("mention_raid_protection_enabled")]
public bool MentionRaidProtectionEnabled { get; set; }

Property Value

bool

MentionTotalLimit

[JsonPropertyName("mention_total_limit")]
public int? MentionTotalLimit { get; set; }

Property Value

int?

Presets

[JsonPropertyName("presets")]
public IEnumerable<AutoModerationRuleKeywordPresetType>? Presets { get; set; }

Property Value

IEnumerable<AutoModerationRuleKeywordPresetType>

RegexPatterns

[JsonPropertyName("regex_patterns")]
public IEnumerable<string>? RegexPatterns { get; set; }

Property Value

IEnumerable<string>

Methods

AddAllowList(IEnumerable<string>)

public AutoModerationRuleTriggerMetadataProperties AddAllowList(IEnumerable<string> allowList)

Parameters

allowList IEnumerable<string>

Returns

AutoModerationRuleTriggerMetadataProperties

AddAllowList(params string[])

public AutoModerationRuleTriggerMetadataProperties AddAllowList(params string[] allowList)

Parameters

allowList string[]

Returns

AutoModerationRuleTriggerMetadataProperties

AddKeywordFilter(IEnumerable<string>)

public AutoModerationRuleTriggerMetadataProperties AddKeywordFilter(IEnumerable<string> keywordFilter)

Parameters

keywordFilter IEnumerable<string>

Returns

AutoModerationRuleTriggerMetadataProperties

AddKeywordFilter(params string[])

public AutoModerationRuleTriggerMetadataProperties AddKeywordFilter(params string[] keywordFilter)

Parameters

keywordFilter string[]

Returns

AutoModerationRuleTriggerMetadataProperties

AddPresets(params AutoModerationRuleKeywordPresetType[])

public AutoModerationRuleTriggerMetadataProperties AddPresets(params AutoModerationRuleKeywordPresetType[] presets)

Parameters

presets AutoModerationRuleKeywordPresetType[]

Returns

AutoModerationRuleTriggerMetadataProperties

AddPresets(IEnumerable<AutoModerationRuleKeywordPresetType>)

public AutoModerationRuleTriggerMetadataProperties AddPresets(IEnumerable<AutoModerationRuleKeywordPresetType> presets)

Parameters

presets IEnumerable<AutoModerationRuleKeywordPresetType>

Returns

AutoModerationRuleTriggerMetadataProperties

AddRegexPatterns(IEnumerable<string>)

public AutoModerationRuleTriggerMetadataProperties AddRegexPatterns(IEnumerable<string> regexPatterns)

Parameters

regexPatterns IEnumerable<string>

Returns

AutoModerationRuleTriggerMetadataProperties

AddRegexPatterns(params string[])

public AutoModerationRuleTriggerMetadataProperties AddRegexPatterns(params string[] regexPatterns)

Parameters

regexPatterns string[]

Returns

AutoModerationRuleTriggerMetadataProperties

WithAllowList(IEnumerable<string>?)

public AutoModerationRuleTriggerMetadataProperties WithAllowList(IEnumerable<string>? allowList)

Parameters

allowList IEnumerable<string>

Returns

AutoModerationRuleTriggerMetadataProperties

WithKeywordFilter(IEnumerable<string>?)

public AutoModerationRuleTriggerMetadataProperties WithKeywordFilter(IEnumerable<string>? keywordFilter)

Parameters

keywordFilter IEnumerable<string>

Returns

AutoModerationRuleTriggerMetadataProperties

WithMentionRaidProtectionEnabled(bool)

public AutoModerationRuleTriggerMetadataProperties WithMentionRaidProtectionEnabled(bool mentionRaidProtectionEnabled = true)

Parameters

mentionRaidProtectionEnabled bool

Returns

AutoModerationRuleTriggerMetadataProperties

WithMentionTotalLimit(int?)

public AutoModerationRuleTriggerMetadataProperties WithMentionTotalLimit(int? mentionTotalLimit)

Parameters

mentionTotalLimit int?

Returns

AutoModerationRuleTriggerMetadataProperties

WithPresets(IEnumerable<AutoModerationRuleKeywordPresetType>?)

public AutoModerationRuleTriggerMetadataProperties WithPresets(IEnumerable<AutoModerationRuleKeywordPresetType>? presets)

Parameters

presets IEnumerable<AutoModerationRuleKeywordPresetType>

Returns

AutoModerationRuleTriggerMetadataProperties

WithRegexPatterns(IEnumerable<string>?)

public AutoModerationRuleTriggerMetadataProperties WithRegexPatterns(IEnumerable<string>? regexPatterns)

Parameters

regexPatterns IEnumerable<string>

Returns

AutoModerationRuleTriggerMetadataProperties