Table of Contents

Method GetAutomodRuleAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetAutomodRuleAsync(ulong, CancellationToken)

Gets a specific auto mod rule.

[RequiresFeature(Features.Community)]
public Task<AutomodRule> GetAutomodRuleAsync(ulong ruleId, CancellationToken cancellationToken = default)

Parameters

ruleId ulong

The rule id to get.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<AutomodRule>

The auto mod rule.