From f5a8d06d8b538bfb0375d6567dd35ce6716f8cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Susa=C3=B1a?= Date: Thu, 29 Aug 2024 15:34:58 -0400 Subject: [PATCH] fix: commands assignament --- src/commands/handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }