diff --git a/src/Discord.Net.Interactions/InteractionService.cs b/src/Discord.Net.Interactions/InteractionService.cs index c23e355e..edf1b6a8 100644 --- a/src/Discord.Net.Interactions/InteractionService.cs +++ b/src/Discord.Net.Interactions/InteractionService.cs @@ -519,7 +519,7 @@ namespace Discord.Interactions { 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 @@ namespace Discord.Interactions { EnsureClientReady(); - var props = modules.SelectMany(x => x.ToApplicationCommandProps(true)).ToList(); + var props = modules.SelectMany(x => x.ToApplicationCommandProps(true)).Distinct().ToList(); if (!deleteMissing) {