|
|
|
@ -33,6 +33,7 @@ module.exports = async (client, message) => { |
|
|
|
|
|
|
|
|
|
let cmdToRun = client.commands.get(cmd.name) || client.commands.get(client.aliases.get(cmd.name)); |
|
|
|
|
if (!cmdToRun) {return;} |
|
|
|
|
await message.channel.sendTyping(); |
|
|
|
|
try {cmdToRun.run(client, message, args, cmd).catch(e => client.error(`There was an error in the ${cmdToRun.name} command.`, 0, 0, 1, e, '\n'));} |
|
|
|
|
catch (e) {client.error(`There was an error in the ${cmdToRun.name} command.`, 0, 0, 1, e, '\n');} |
|
|
|
|
}; |