Merge branch 'master' into develop

This commit is contained in:
Christer Warén committed 2021-08-21 19:43:57 +03:00
commit 727cae13b4
3 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -32,8 +32,9 @@ 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(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++) {