We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 156b3f9 commit b0c4dd2Copy full SHA for b0c4dd2
commands/utilities/help.js
@@ -54,7 +54,7 @@ module.exports = {
54
return;
55
}
56
57
- 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));
58
59
if (!command) return message.errorMessage(`Je n'ai aucunne commande ou aliases de nom : \`${name}\``);
60
0 commit comments