Skip to content

Commit

Permalink
fix: Reworked application command equality check & registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Sep 18, 2023
1 parent 9358a0e commit f60dc77
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 235 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ private async Task RegisterCommands(List<ApplicationCommandsModuleConfiguration>
{
if (updateList != null && updateList.Any())
{
var regCommands = await RegistrationWorker.RegisterGuildCommandsAsync(this.Client, guildId.Value, updateList).ConfigureAwait(false);
var regCommands = await RegistrationWorker.RegisterGuildCommandsAsync(this.Client, guildId.Value, updateList).ConfigureAwait(false);
var actualCommands = regCommands.Distinct().ToList();
commands.AddRange(actualCommands);
GuildCommandsInternal.Add(guildId.Value, actualCommands);
Expand Down
Loading

0 comments on commit f60dc77

Please sign in to comment.