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++) {