fix: handler warn log

This commit is contained in:
MARCROCK22 2024-05-10 14:54:59 -04:00
parent b9b6b2dc29
commit 3a780ea347

View File

@ -54,7 +54,7 @@ export class CommandHandler extends BaseHandler {
commandInstance = this.onCommand(command.file);
if (!commandInstance) continue;
} catch (e) {
if (e instanceof Error && e.message === 'command.file is not a constructor') {
if (e instanceof Error && e.message.includes('is not a constructor')) {
this.logger.warn(
`${command.path
.split(process.cwd())