#CommandStores not showing commands in order

1 messages · Page 1 of 1 (latest)

hybrid root
#

I just finished the rewrite of a bot, tested the help command and looks like the commands are not showing in order, just tested on the Development bot and they are in order, this doesn't cause any issues but I want them to show correctly, any idea? Could be a host issue?

low obsidianBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

real raft
#

What is the order you're looking for? What method are you using to see the order in both bots?

hybrid root
#

this.container.stores.get("commands");

real raft
#

What order are you looking for (and why does it matter?)

hybrid root
#

on the development bot they showed in a alphabetical order

#

basically in the same order they are in vsc

#

I uploaded all the files at once in the host, could this be the reason of this?

real raft
#

Why does it matter?

#

You could sort them manually if you're displaying them through a help command or similar.

#
this.container.stores.get("commands").sort((a, b) => a.name.localeCompare(b.name))
hybrid root