Skip to content

Commit

Permalink
chore: allow devs to use CleanGuildCommandsAsync & CleanGlobalCommand…
Browse files Browse the repository at this point in the history
…sAsync
  • Loading branch information
Lulalaby committed Jan 12, 2024
1 parent 8ff8461 commit cb62ea9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,17 +323,17 @@ public void CleanModule()
/// Cleans all guild application commands.
/// <note type="caution">You normally don't need to execute it.</note>
/// </summary>
internal async Task CleanGuildCommandsAsync()
public async Task CleanGuildCommandsAsync()
{
foreach (var guild in this.Client.Guilds.Values)
await this.Client.BulkOverwriteGuildApplicationCommandsAsync(guild.Id, Array.Empty<DiscordApplicationCommand>()).ConfigureAwait(false);
}

/// <summary>
/// Cleans the global application commands.
/// Cleans all global application commands.
/// <note type="caution">You normally don't need to execute it.</note>
/// </summary>
internal async Task CleanGlobalCommandsAsync()
public async Task CleanGlobalCommandsAsync()
=> await this.Client.BulkOverwriteGlobalApplicationCommandsAsync(Array.Empty<DiscordApplicationCommand>()).ConfigureAwait(false);

/// <summary>
Expand Down

0 comments on commit cb62ea9

Please sign in to comment.