Sort by name in help/gen commands

This commit is contained in:
Dragon Fire
2024-04-03 16:38:36 -04:00
parent e5d22f4033
commit 423de7b376
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ module.exports = class HelpCommand extends Command {
if (cmd.ownerOnly || cmd.hidden) return false;
if (cmd.nsfw && !msg.channel.nsfw) return false;
return true;
});
}).sort((a, b) => a.name.localeCompare(b.name));
if (!commands.size) continue;
cmdCount += commands.size;
if (i > (embedIndex * 10) + 10) embedIndex++;