Browse Source

fix IsTopLevel for ModuleInfo and CommandInfo

pull/2025/head
Cenk Ergen 3 years ago
parent
commit
b3c2abae4a
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/Discord.Net.Interactions/Info/Commands/CommandInfo.cs
  2. +1
    -1
      src/Discord.Net.Interactions/Info/ModuleInfo.cs

+ 1
- 1
src/Discord.Net.Interactions/Info/Commands/CommandInfo.cs View File

@@ -237,7 +237,7 @@ namespace Discord.Interactions

while (currentParent != null)
{
if (currentParent.IsTopLevelGroup)
if (currentParent.IsSlashGroup)
return false;

currentParent = currentParent.Parent;


+ 1
- 1
src/Discord.Net.Interactions/Info/ModuleInfo.cs View File

@@ -206,7 +206,7 @@ namespace Discord.Interactions

while (currentParent != null)
{
if (currentParent.IsTopLevelGroup)
if (currentParent.IsSlashGroup)
return false;

currentParent = currentParent.Parent;


Loading…
Cancel
Save