[Fix] InteractionService.AddModulesXAsync command duplication (#2867)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user