mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +00:00
fix: commands assignament
This commit is contained in:
parent
42e1273393
commit
f5a8d06d8b
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user