Table of Contents

Class AutoModerationRuleOptions

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

Properties

Actions

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("actions")]
public IEnumerable<AutoModerationActionProperties>? Actions { get; set; }

Property Value

IEnumerable<AutoModerationActionProperties>

Enabled

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("enabled")]
public bool? Enabled { get; set; }

Property Value

bool?

EventType

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("event_type")]
public AutoModerationRuleEventType? EventType { get; set; }

Property Value

AutoModerationRuleEventType?

ExemptChannels

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("exempt_channels")]
public IEnumerable<ulong>? ExemptChannels { get; set; }

Property Value

IEnumerable<ulong>

ExemptRoles

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("exempt_roles")]
public IEnumerable<ulong>? ExemptRoles { get; set; }

Property Value

IEnumerable<ulong>

Name

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

TriggerMetadata

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("trigger_metadata")]
public AutoModerationRuleTriggerMetadataProperties? TriggerMetadata { get; set; }

Property Value

AutoModerationRuleTriggerMetadataProperties

Methods

AddActions(params AutoModerationActionProperties[])

public AutoModerationRuleOptions AddActions(params AutoModerationActionProperties[] actions)

Parameters

actions AutoModerationActionProperties[]

Returns

AutoModerationRuleOptions

AddActions(IEnumerable<AutoModerationActionProperties>)

public AutoModerationRuleOptions AddActions(IEnumerable<AutoModerationActionProperties> actions)

Parameters

actions IEnumerable<AutoModerationActionProperties>

Returns

AutoModerationRuleOptions

AddExemptChannels(IEnumerable<ulong>)

public AutoModerationRuleOptions AddExemptChannels(IEnumerable<ulong> exemptChannels)

Parameters

exemptChannels IEnumerable<ulong>

Returns

AutoModerationRuleOptions

AddExemptChannels(params ulong[])

public AutoModerationRuleOptions AddExemptChannels(params ulong[] exemptChannels)

Parameters

exemptChannels ulong[]

Returns

AutoModerationRuleOptions

AddExemptRoles(IEnumerable<ulong>)

public AutoModerationRuleOptions AddExemptRoles(IEnumerable<ulong> exemptRoles)

Parameters

exemptRoles IEnumerable<ulong>

Returns

AutoModerationRuleOptions

AddExemptRoles(params ulong[])

public AutoModerationRuleOptions AddExemptRoles(params ulong[] exemptRoles)

Parameters

exemptRoles ulong[]

Returns

AutoModerationRuleOptions

WithActions(IEnumerable<AutoModerationActionProperties>?)

public AutoModerationRuleOptions WithActions(IEnumerable<AutoModerationActionProperties>? actions)

Parameters

actions IEnumerable<AutoModerationActionProperties>

Returns

AutoModerationRuleOptions

WithEnabled(bool?)

public AutoModerationRuleOptions WithEnabled(bool? enabled = true)

Parameters

enabled bool?

Returns

AutoModerationRuleOptions

WithEventType(AutoModerationRuleEventType?)

public AutoModerationRuleOptions WithEventType(AutoModerationRuleEventType? eventType)

Parameters

eventType AutoModerationRuleEventType?

Returns

AutoModerationRuleOptions

WithExemptChannels(IEnumerable<ulong>?)

public AutoModerationRuleOptions WithExemptChannels(IEnumerable<ulong>? exemptChannels)

Parameters

exemptChannels IEnumerable<ulong>

Returns

AutoModerationRuleOptions

WithExemptRoles(IEnumerable<ulong>?)

public AutoModerationRuleOptions WithExemptRoles(IEnumerable<ulong>? exemptRoles)

Parameters

exemptRoles IEnumerable<ulong>

Returns

AutoModerationRuleOptions

WithName(string?)

public AutoModerationRuleOptions WithName(string? name)

Parameters

name string

Returns

AutoModerationRuleOptions

WithTriggerMetadata(AutoModerationRuleTriggerMetadataProperties?)

public AutoModerationRuleOptions WithTriggerMetadata(AutoModerationRuleTriggerMetadataProperties? triggerMetadata)

Parameters

triggerMetadata AutoModerationRuleTriggerMetadataProperties

Returns

AutoModerationRuleOptions