From 6afe6c30f9f8f4f72639d4d19a4d7e9bca2a69af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 21 Aug 2021 19:12:52 +0300 Subject: [PATCH] Fixed help command --- src/client/commands/help.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/commands/help.js b/src/client/commands/help.js index 593b80b..f1413fa 100644 --- a/src/client/commands/help.js +++ b/src/client/commands/help.js @@ -27,8 +27,9 @@ module.exports = { msg.channel.send({ embeds: [embed] }); } else { const categories = []; + let commandsToArray = Array.from(client.commands.values()); for (let i = 0; i < client.commands.size; i++) { - if (!categories.includes(client.commands.array()[i].category)) categories.push(client.commands.array()[i].category); + if (!categories.includes(commandsToArray[i].category)) categories.push(commandsToArray[i].category); } let commands = ''; for (let i = 0; i < categories.length; i++) {