fullCommandName

This commit is contained in:
MARCROCK22 2024-03-19 20:00:53 -04:00
parent dbad537eae
commit 647f7d11d0

View File

@ -33,7 +33,9 @@ function getCommandFromContent(
const groupName = commandRaw.length === 3 ? commandRaw[1] : undefined;
const subcommandName = groupName ? commandRaw[2] : commandRaw[1];
const parent = self.commands.values.find(x => x.name === parentName);
const fullCommandName = `${parentName}${groupName ? ` ${groupName} ${subcommandName}` : ` ${subcommandName ?? ''}`}`;
const fullCommandName = `${parentName}${
groupName ? ` ${groupName} ${subcommandName}` : `${subcommandName ? ` ${subcommandName}` : ''}`
}`;
if (!(parent instanceof Command)) return { fullCommandName };