mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 21:40:49 +02:00
Sort by name in help/gen commands
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user