Method ModifyAutoModerationRuleAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
ModifyAutoModerationRuleAsync(ulong, Action<AutoModerationRuleEditModel>)
Modify an auto-moderation rule in the guild.
public Task<DiscordAutoModerationRule> ModifyAutoModerationRuleAsync(ulong ruleId, Action<AutoModerationRuleEditModel> action)
Parameters
ruleId
ulongThe id of the rule that will be edited.
action
Action<AutoModerationRuleEditModel>Action to perform on this rule.
Returns
- Task<DiscordAutoModerationRule>
The modified rule.
Remarks
All arguments are optionals.