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
JsonAutoModerationRuleclient
RestClient
Properties
Actions
public IReadOnlyList<AutoModerationAction> Actions { get; }
Property Value
CreatorId
public ulong CreatorId { get; }
Property Value
Enabled
public bool Enabled { get; }
Property Value
EventType
public AutoModerationRuleEventType EventType { get; }
Property Value
ExemptChannels
public IReadOnlyList<ulong> ExemptChannels { get; }
Property Value
ExemptRoles
public IReadOnlyList<ulong> ExemptRoles { get; }
Property Value
GuildId
public ulong GuildId { get; }
Property Value
Id
The unique identifier for this object.
public override ulong Id { get; }
Property Value
Name
public string Name { get; }
Property Value
TriggerMetadata
public AutoModerationRuleTriggerMetadata TriggerMetadata { get; }
Property Value
TriggerType
public AutoModerationRuleTriggerType TriggerType { get; }
Property Value
Methods
DeleteAsync(RestRequestProperties?, CancellationToken)
public Task DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetAsync(RestRequestProperties?, CancellationToken)
public Task<AutoModerationRule> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyAsync(Action<AutoModerationRuleOptions>, RestRequestProperties?, CancellationToken)
public Task<AutoModerationRule> ModifyAsync(Action<AutoModerationRuleOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<AutoModerationRuleOptions>properties
RestRequestPropertiescancellationToken
CancellationToken