Class AutoModerationRuleTriggerMetadataProperties
- Namespace
- NetCord
- Assembly
- NetCord.dll
public class AutoModerationRuleTriggerMetadataProperties
- Inheritance
-
AutoModerationRuleTriggerMetadataProperties
- Inherited Members
-
Constructors
public AutoModerationRuleTriggerMetadataProperties()
Properties
[JsonPropertyName("allow_list")]
public IEnumerable<string>? AllowList { get; set; }
Property Value
- IEnumerable<string>
[JsonPropertyName("keyword_filter")]
public IEnumerable<string>? KeywordFilter { get; set; }
Property Value
- IEnumerable<string>
[JsonPropertyName("mention_raid_protection_enabled")]
public bool MentionRaidProtectionEnabled { get; set; }
Property Value
- bool
[JsonPropertyName("mention_total_limit")]
public int? MentionTotalLimit { get; set; }
Property Value
- int?
[JsonPropertyName("presets")]
public IEnumerable<AutoModerationRuleKeywordPresetType>? Presets { get; set; }
Property Value
- IEnumerable<AutoModerationRuleKeywordPresetType>
[JsonPropertyName("regex_patterns")]
public IEnumerable<string>? RegexPatterns { get; set; }
Property Value
- IEnumerable<string>
Methods
public AutoModerationRuleTriggerMetadataProperties AddAllowList(IEnumerable<string> allowList)
Parameters
allowList
IEnumerable<string>
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties AddAllowList(params string[] allowList)
Parameters
allowList
string[]
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties AddKeywordFilter(IEnumerable<string> keywordFilter)
Parameters
keywordFilter
IEnumerable<string>
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties AddKeywordFilter(params string[] keywordFilter)
Parameters
keywordFilter
string[]
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties AddPresets(params AutoModerationRuleKeywordPresetType[] presets)
Parameters
presets
AutoModerationRuleKeywordPresetType[]
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties AddPresets(IEnumerable<AutoModerationRuleKeywordPresetType> presets)
Parameters
presets
IEnumerable<AutoModerationRuleKeywordPresetType>
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties AddRegexPatterns(IEnumerable<string> regexPatterns)
Parameters
regexPatterns
IEnumerable<string>
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties AddRegexPatterns(params string[] regexPatterns)
Parameters
regexPatterns
string[]
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties WithAllowList(IEnumerable<string>? allowList)
Parameters
allowList
IEnumerable<string>
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties WithKeywordFilter(IEnumerable<string>? keywordFilter)
Parameters
keywordFilter
IEnumerable<string>
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties WithMentionRaidProtectionEnabled(bool mentionRaidProtectionEnabled = true)
Parameters
mentionRaidProtectionEnabled
bool
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties WithMentionTotalLimit(int? mentionTotalLimit)
Parameters
mentionTotalLimit
int?
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties WithPresets(IEnumerable<AutoModerationRuleKeywordPresetType>? presets)
Parameters
presets
IEnumerable<AutoModerationRuleKeywordPresetType>
Returns
- AutoModerationRuleTriggerMetadataProperties
public AutoModerationRuleTriggerMetadataProperties WithRegexPatterns(IEnumerable<string>? regexPatterns)
Parameters
regexPatterns
IEnumerable<string>
Returns
- AutoModerationRuleTriggerMetadataProperties