diff --git a/src/help/index.ts b/src/help/index.ts index ddfcb365..d3df7b91 100644 --- a/src/help/index.ts +++ b/src/help/index.ts @@ -201,7 +201,8 @@ export class Help extends HelpBase { if (command.deprecateAliases && command.aliases.includes(name)) { const actualCmd = this.config.commands.find((c) => c.aliases.includes(name)) - const opts = {...command.deprecationOptions, ...(actualCmd ? {to: actualCmd.id} : {})} + const actualCmdName = actualCmd ? toConfiguredId(actualCmd.id, this.config) : '' + const opts = {...command.deprecationOptions, ...(actualCmd ? {to: actualCmdName} : {})} this.log(`${formatCommandDeprecationWarning(toConfiguredId(name, this.config), opts)}\n`) }