Table of Contents

Method ModifyAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

ModifyAsync(Action<AutoModerationRuleEditModel>)

Modify the rule in the guild.

public Task<DiscordAutoModerationRule> ModifyAsync(Action<AutoModerationRuleEditModel> action)

Parameters

action Action<AutoModerationRuleEditModel>

Action the perform on this rule.

Returns

Task<DiscordAutoModerationRule>

The modified rule.