diff --git a/src/Discord.Net.Interactions/Info/Commands/CommandInfo.cs b/src/Discord.Net.Interactions/Info/Commands/CommandInfo.cs index d609c535d..cfbcbacf2 100644 --- a/src/Discord.Net.Interactions/Info/Commands/CommandInfo.cs +++ b/src/Discord.Net.Interactions/Info/Commands/CommandInfo.cs @@ -237,7 +237,7 @@ namespace Discord.Interactions while (currentParent != null) { - if (currentParent.IsTopLevelGroup) + if (currentParent.IsSlashGroup) return false; currentParent = currentParent.Parent; diff --git a/src/Discord.Net.Interactions/Info/ModuleInfo.cs b/src/Discord.Net.Interactions/Info/ModuleInfo.cs index 4450b55e3..4388ea722 100644 --- a/src/Discord.Net.Interactions/Info/ModuleInfo.cs +++ b/src/Discord.Net.Interactions/Info/ModuleInfo.cs @@ -206,7 +206,7 @@ namespace Discord.Interactions while (currentParent != null) { - if (currentParent.IsTopLevelGroup) + if (currentParent.IsSlashGroup) return false; currentParent = currentParent.Parent;