diff --git a/src/config/config.ts b/src/config/config.ts index 527deef21..59e4d9f8d 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -633,7 +633,7 @@ export class Config implements IConfig { for (const alias of command.aliases ?? []) { if (this._commands.has(alias)) { const prioritizedCommand = this.determinePriority([this._commands.get(alias)!, command]) - this._commands.set(prioritizedCommand.id, {...prioritizedCommand, id: alias}) + this._commands.set(alias, {...prioritizedCommand, id: alias}) } else { this._commands.set(alias, {...command, id: alias}) }