theADAMJR/1PG

error in command-handler.js error is here const command = commands.get(name); try { await command?.execute(msg, ...args); } catch (error) { await msg.channel.send(`⚠ ${error?.message ?? 'Unknown error.'}`); } return command; }

Wumpuspro opened this issue · 1 comments

try to fix the error
const command = commands.get(name);
try {
await command?.execute(msg, ...args);
}
catch (error) {
await msg.channel.send(⚠ ${error?.message ?? 'Unknown error.'});
}
return command;
}
(unexpected token at command?.execute(msg, ...args);

NodeJS v14+ is required to run this code.