Converting a SlashCommandSubcommandBuilder into a SlashCommandBuilder
Hello everybody! :)
I am working on a framework that goes on top of discordjs and I was wondering if there was any way of converting a
Probably the only acceptable deign here would be to create myself a data structure that allows the framework user to description a command and then when deploying I myself create the discordjs structures. This would also look much visually better. I'm still undecided.
I am working on a framework that goes on top of discordjs and I was wondering if there was any way of converting a
SlashCommandSubcommandBuilder into a SlashCommandBuilder. In this framework the user itself instantiates the command data (SlashCommandSubcommandBuilder) that's used to register the command but this process envolves creating SlashCommandBuilder and SlashCommandSubcommandGroupBuilder following the directory tree, but I decided to implement folders that work in a way only to separate things specially because of a middleware without changing the way the command is seen on Discord, pretty much like Next.js does with routes surrounded by parenthesis, they do not affect the routes but help isolating layouts and middlewares.Probably the only acceptable deign here would be to create myself a data structure that allows the framework user to description a command and then when deploying I myself create the discordjs structures. This would also look much visually better. I'm still undecided.