Skip to content

Commit b0c4dd2

Browse files
authored
🖥 client.aliases is no defined (#8)
1 parent 156b3f9 commit b0c4dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/utilities/help.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
return;
5555
}
5656

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

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

0 commit comments

Comments
 (0)