Relative Content

Tag Archive for javascriptdiscord.js

AutoCreatiing VC BOT in discord.js

I’m making a bot that will perform one function, when a user enters a specific channel with a specified ID, a new channel is created and transferred there, but the code does not work, here is my code:

TypeError: addChoices is not a function when using subcommands in Discord.JS API v14

I already have a discord bot that has a command with one option and multiple choices. I wanted to add subcommands where the user can first pick which command he wants, then he would pick a subcommand and then will have choices (each subcommand would have choices). I’ve tried to edit my code with the code from this guide:
https://discordjs.guide/slash-commands/advanced-creation.html#subcommands