diff --git a/src/class/Util.ts b/src/class/Util.ts index 0459d73..61accda 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -64,11 +64,12 @@ export default class Util { } else if (resolvedCommand.subcommands.has(args[0])) { parentLabel += `${resolvedCommand.name} `; resolvedCommand = resolvedCommand.subcommands.get(args[0]); args.shift(); + parentLabel += `${resolvedCommand.name} `; } else { const subcommandArray = resolvedCommand.subcommands.toArray(); for (const subCmd of subcommandArray) { if (subCmd.aliases.includes(args[0])) { - parentLabel += `${resolvedCommand.name} `; resolvedCommand = subCmd; args.shift(); break; + parentLabel += `${resolvedCommand.name} `; resolvedCommand = subCmd; parentLabel += `${resolvedCommand.name} `; args.shift(); break; } if (subcommandArray.findIndex((v) => v === subCmd) === subcommandArray.length - 1) { hasSubCommands = false; break;