From cb62ea94d201e7c157433fc0a927354d2bc0e858 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Fri, 12 Jan 2024 04:35:16 +0100 Subject: [PATCH] chore: allow devs to use CleanGuildCommandsAsync & CleanGlobalCommandsAsync --- .../ApplicationCommandsExtension.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DisCatSharp.ApplicationCommands/ApplicationCommandsExtension.cs b/DisCatSharp.ApplicationCommands/ApplicationCommandsExtension.cs index 59ba8820e7..dab858f433 100644 --- a/DisCatSharp.ApplicationCommands/ApplicationCommandsExtension.cs +++ b/DisCatSharp.ApplicationCommands/ApplicationCommandsExtension.cs @@ -323,17 +323,17 @@ public void CleanModule() /// Cleans all guild application commands. /// You normally don't need to execute it. /// - internal async Task CleanGuildCommandsAsync() + public async Task CleanGuildCommandsAsync() { foreach (var guild in this.Client.Guilds.Values) await this.Client.BulkOverwriteGuildApplicationCommandsAsync(guild.Id, Array.Empty()).ConfigureAwait(false); } /// - /// Cleans the global application commands. + /// Cleans all global application commands. /// You normally don't need to execute it. /// - internal async Task CleanGlobalCommandsAsync() + public async Task CleanGlobalCommandsAsync() => await this.Client.BulkOverwriteGlobalApplicationCommandsAsync(Array.Empty()).ConfigureAwait(false); ///