Subcommand not registering
Hello, I was not really sure whether I should post this in #discordjs-support or #sapphire-support, but since it's an issue regarding subcommand registration, I decided to post it here!
I'm kinda new to all of this and I just made a new bot. I wanted to create a
How can I fix it?
I'm kinda new to all of this and I just made a new bot. I wanted to create a
/channels command (here is the code: https://hastebin.skyra.pw/cezeqivufo.less) but when I try to run the bot, I get the following error:How can I fix it?
Solution
I just replaced the
new SlashCommandBuilder() with (builder) => builder and now it works!