From 7810f6fff8b94406ee783e869fef4517658294fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 22 Aug 2021 19:00:19 +0300 Subject: [PATCH] Updated help command --- src/client/commands/help.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/commands/help.js b/src/client/commands/help.js index 349fcbd..2ae9b85 100644 --- a/src/client/commands/help.js +++ b/src/client/commands/help.js @@ -32,9 +32,8 @@ module.exports = { interaction.reply({ embeds: [embed] }); } else {*/ const categories = []; - let commandsToArray = Array.from(client.commands.values()); for (let i = 0; i < client.commands.size; i++) { - if (!categories.includes(commandsToArray[i].category)) categories.push(commandsToArray[i].category); + if (!categories.includes([...client.commands.values()][i].category)) categories.push([...client.commands.values()][i].category); } let commands = ''; for (let i = 0; i < categories.length; i++) {