Can someone explain me how to return a value?
I try to return the .setvalue from the select menu That my bot response with the selected Option
![No description](https://cdn.answeroverflow.com/1262057931554160790/IMG_9927.png)
18 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!Show your code
And elaborate
hmm I can't share cause my code is too long
any idea how I can share it
Pastebin
const { SlashCommandBuilder,EmbedBuilder,StringSelectMenuBuilder, S...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
sry my code is messy but if it's ready I edit it that it look like more professional
on line 83 is the problem I try to solve
You never define values
So yes, that wont work
oh I cant use the .setvalue?
what are you trying to achieve exactly
Your issue is really unclear
I want that the user do a choice and then I want return the choice
yeah another one share this link but If I read this I don't realy understand how to solve my problem normaly I use the djs guide website and build from snipet code my bot😅
you collect an interaction
this is how to access its values
interaction.values I need?
yes