Skip to content

Commit

Permalink
🖥 client.aliases is no defined (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldb09 authored Apr 12, 2021
1 parent 156b3f9 commit b0c4dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/utilities/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = {
return;
}

const name = args[0].toLowerCase(), command = (commands.get(message.client.aliases.get(name) ? message.client.aliases.get(name) : name));
const name = args[0].toLowerCase(), command = commands.get(name) || commands.find(c => c.aliases && c.aliases.includes(name));

if (!command) return message.errorMessage(`Je n'ai aucunne commande ou aliases de nom : \`${name}\``);

Expand Down

0 comments on commit b0c4dd2

Please sign in to comment.