Could not pass a new instance of slash command builder to registry.registerApplicationCommands
I have found out that subcommand and subcommand group type is omitted when passing a newly instance of builder. When using the callback method it's not omitted 🤔
reproduction sample: https://github.com/yuanstuffs/registry-reproduction-sample
8 Replies

doing
builder.toJSON()
:
Same as registering subcommands.

subcommands and sub groups are being omitted
.
I am running a bot with subcommands just fine so i have no idea what is going wrong here.
GitHub
bloombot/src/commands/settings.ts at main · favware/bloombot
A private discord bot for the Nightbloom FC Discord server - favware/bloombot
Using the callback method have no issues, how about try making a new instance of the slash command builder class with subcommands and pass it to the register chat input command function
oh that's what you meant. hm yeah I think I reported before to @vladdy that passing an instance doesnt work properly