I have a question regarding how to properly mention commands that have subcommands in a bot.
For example, I have a
/status
/status
command, with the subcommands
/status bot
/status bot
and
/status api
/status api
.
While I understand that this is a Discord-related issue, I am trying to implement this functionality in my bot. I have structured the commands in an array, with each command being an object.
However, when trying to mention the commands using the following code, it works for all commands except those that contain subcommands:
let commandString = `- </${command.name}:${command.id}> - ${command.description}`;
let commandString = `- </${command.name}:${command.id}> - ${command.description}`;
Could you provide any insights into how I might address this issue?