Table of Contents

Class AutoModerationRule

Namespace
NetCord
Assembly
NetCord.dll
public class AutoModerationRule : ClientEntity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonAutoModerationRule>
Inheritance
AutoModerationRule
Implements
Inherited Members

Constructors

AutoModerationRule(JsonAutoModerationRule, RestClient)

public AutoModerationRule(JsonAutoModerationRule jsonModel, RestClient client)

Parameters

jsonModel JsonAutoModerationRule
client RestClient

Properties

Actions

public IReadOnlyList<AutoModerationAction> Actions { get; }

Property Value

IReadOnlyList<AutoModerationAction>

CreatorId

public ulong CreatorId { get; }

Property Value

ulong

Enabled

public bool Enabled { get; }

Property Value

bool

EventType

public AutoModerationRuleEventType EventType { get; }

Property Value

AutoModerationRuleEventType

ExemptChannels

public IReadOnlyList<ulong> ExemptChannels { get; }

Property Value

IReadOnlyList<ulong>

ExemptRoles

public IReadOnlyList<ulong> ExemptRoles { get; }

Property Value

IReadOnlyList<ulong>

GuildId

public ulong GuildId { get; }

Property Value

ulong

Id

The unique identifier for this object.

public override ulong Id { get; }

Property Value

ulong

Name

public string Name { get; }

Property Value

string

TriggerMetadata

public AutoModerationRuleTriggerMetadata TriggerMetadata { get; }

Property Value

AutoModerationRuleTriggerMetadata

TriggerType

public AutoModerationRuleTriggerType TriggerType { get; }

Property Value

AutoModerationRuleTriggerType

Methods

DeleteAsync(RestRequestProperties?, CancellationToken)

public Task DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

GetAsync(RestRequestProperties?, CancellationToken)

public Task<AutoModerationRule> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<AutoModerationRule>

ModifyAsync(Action<AutoModerationRuleOptions>, RestRequestProperties?, CancellationToken)

public Task<AutoModerationRule> ModifyAsync(Action<AutoModerationRuleOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

action Action<AutoModerationRuleOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<AutoModerationRule>