Skip to content

Commit

Permalink
Fix "Declaration path is null" when trying to get a "/root subgroup s…
Browse files Browse the repository at this point in the history
…ubcommand" declaration
  • Loading branch information
MrPowerGamerBR committed Apr 3, 2024
1 parent 682d4e8 commit 089d95a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ class UnleashedCommandManager(val loritta: LorittaBot, val languageManager: Lang
}

for (group in declaration.subcommandGroups) {
for (subcommandDeclaration in declaration.subcommands) {
for (subcommandDeclaration in group.subcommands) {
if (subcommandDeclaration == endDeclaration)
return listOf(declaration, group, subcommandDeclaration)
}
Expand Down

0 comments on commit 089d95a

Please sign in to comment.