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:
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)
Jump to solution
4 Replies
Solution
Favna
Favna11mo ago
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)
Spinel
Spinel11mo ago
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.
Jarvo
Jarvo11mo ago
Discord.js?
Lioness100
Lioness10011mo ago
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:
const display = this.store.map((command) => {
return `\`!${command.name}\` - ${command.description}`;
});
const display = this.store.map((command) => {
return `\`!${command.name}\` - ${command.description}`;
});
Want results from more Discord servers?
Add your server