diff --git a/src/Discord.Net.Interactions/InteractionService.cs b/src/Discord.Net.Interactions/InteractionService.cs index c23e355e5d..edf1b6a851 100644 --- a/src/Discord.Net.Interactions/InteractionService.cs +++ b/src/Discord.Net.Interactions/InteractionService.cs @@ -519,7 +519,7 @@ public async Task> AddModulesToGuildAsync( { EnsureClientReady(); - var props = modules.SelectMany(x => x.ToApplicationCommandProps(true)).ToList(); + var props = modules.SelectMany(x => x.ToApplicationCommandProps(true)).Distinct().ToList(); if (!deleteMissing) { @@ -543,7 +543,7 @@ public async Task> AddModulesGloballyAsyn { EnsureClientReady(); - var props = modules.SelectMany(x => x.ToApplicationCommandProps(true)).ToList(); + var props = modules.SelectMany(x => x.ToApplicationCommandProps(true)).Distinct().ToList(); if (!deleteMissing) {