diff --git a/src/commands/handler.ts b/src/commands/handler.ts index 4caedf8..40be1be 100644 --- a/src/commands/handler.ts +++ b/src/commands/handler.ts @@ -293,9 +293,9 @@ export class CommandHandler extends BaseHandler { } this.stablishContextCommandDefaults(commandInstance); this.parseLocales(commandInstance); - if ('handler' in commandInstance) { + if ('handler' in commandInstance && commandInstance.handler) { this.entryPoint = commandInstance as EntryPointCommand; - } else this.values.push(commandInstance); + } else this.values.push(commandInstance as Command); } }