fix: commands assignament

This commit is contained in:
Marcos Susaña 2024-08-29 15:34:58 -04:00
parent 42e1273393
commit f5a8d06d8b
No known key found for this signature in database

View File

@ -293,9 +293,9 @@ export class CommandHandler extends BaseHandler {
} }
this.stablishContextCommandDefaults(commandInstance); this.stablishContextCommandDefaults(commandInstance);
this.parseLocales(commandInstance); this.parseLocales(commandInstance);
if ('handler' in commandInstance) { if ('handler' in commandInstance && commandInstance.handler) {
this.entryPoint = commandInstance as EntryPointCommand; this.entryPoint = commandInstance as EntryPointCommand;
} else this.values.push(commandInstance); } else this.values.push(commandInstance as Command);
} }
} }