How to use the value of .addChoices
How do I use the 'value' of that code?
7 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.<Interaction>.options.getString("game");
I want to execute the command with a value.
What do you mean by that?
Like you want it do something depending on what choice is chosen?
If you select a channel and .addChoses, you want to run a command on that channel.
Then get the channel the same way you got the string option value:
And then do channel.send() to send a message