✨ Bug fixes & update (v3.0.0)
This commit is contained in:
@@ -9,10 +9,8 @@ module.exports = (client, message) => {
|
||||
const args = message.content.slice(prefix.length).trim().split(/ +/g);
|
||||
const command = args.shift().toLowerCase();
|
||||
|
||||
const cmd = client.commands.get(command);
|
||||
const cmd = client.commands.get(command) || client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(command));
|
||||
|
||||
if (!cmd) return;
|
||||
if (cmd) cmd.execute(client, message, args);
|
||||
|
||||
cmd.run(client, message, args);
|
||||
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user