Table of Contents

Method DeleteGuildAutoModerationRuleAsync

Namespace
DSharpPlus.Net
Assembly
DSharpPlus.dll

DeleteGuildAutoModerationRuleAsync(ulong, ulong, string?)

Internal method to delete an auto-moderation rule in a guild.

public ValueTask DeleteGuildAutoModerationRuleAsync(ulong guildId, ulong ruleId, string? reason = null)

Parameters

guildId ulong

The id of the guild where the rule is in.

ruleId ulong

The rule id that will be deleted.

reason string

The reason for audits logs.

Returns

ValueTask