Would there be a way to make a command list?
How would I make a command list, for example you would use !help (or !help <commandName>)
(example message)
Commands!help
- Gets all the commands (the one you just used)!commandName
- Command Description!otherCommand
- Other Description
Solution:Jump to solution
Look at some of the bots that use sapphire (for example @Skyra ) but in shot you get the data from the container which gets access to the stores. How you want to parse and format that data is up to you. We won't be hand holding all the way to making the command because at that point we may as well write your bot for you (which would be a paid comission)
4 Replies
Solution
Look at some of the bots that use sapphire (for example @Skyra ) but in shot you get the data from the container which gets access to the stores. How you want to parse and format that data is up to you. We won't be hand holding all the way to making the command because at that point we may as well write your bot for you (which would be a paid comission)
Discord Bots using @sapphire/framework
v5.x
- Gemboard ᴱ ᴰ
- Skyra ᴱ ᴬ ᴰ
- Dragonite ᴱ ᴰ
- Archangel ᴱ ᴰ
- Official Bot Examples ᴱ ᴰ ᴶˢ
- KBot ᴱ ᴬ ᴰ
v4.x
- Radon ᴱ ᴬ
- Sapphire Application Commands Examples ᴱ
- Zeyr ᴰ ᴬ
- Birthdayy ᴰ
- RTByte ᴱ ᴬ
Legend for the identifiers
ᴱ: Uses ESM (if not specified then uses CJS)
ᴬ: Advanced bot (if not specified it is a simple bot, or not graded)
ᴰ: Uses Docker in production
ᴶˢ: Written in JavaScript. If not specified then the bot is written in TypeScript.
Discord.js?
Adding to what Favvy said, to display all commands, you can use
this.store
to get a collection of the commands. You can then map them and utilize their name
and description
properties. Ex: