embed message struggle

I try to reply with a embed message but I want as answer the .setValue from my select menu. Any Idea how I can get it? maybe save it in a variabele? Ty for advice
22 Replies
d.js toolkit
d.js toolkitβ€’5mo ago
- 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! - βœ… Marked as resolved by OP
Nicolas Matheisen
Nicolas MatheisenOPβ€’5mo ago
Why the server think that I mention too many ppl??? Only my code is ~4000 types long
Unknown User
Unknown Userβ€’5mo ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docsβ€’5mo ago
To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.
Nicolas Matheisen
Nicolas MatheisenOPβ€’5mo ago
ahhhh yes ok sry but it count as mentioned it's interesting^^ hope I do it right If u look on line 82 I want to add .setValue in the description that the selected one is then there
Amgelo
Amgeloβ€’5mo ago
you mean the values the user selected? oh, right
d.js docs
d.js docsβ€’5mo ago
:property: StringSelectMenuInteraction#values @14.15.3 The values selected
Amgelo
Amgeloβ€’5mo ago
btw your indentation looks wrong it shouldn't matter but it makes your code harder to read
Nicolas Matheisen
Nicolas MatheisenOPβ€’5mo ago
I am not sure what do u mean πŸ˜…
Amgelo
Amgeloβ€’5mo ago
this for instance is correct
No description
Nicolas Matheisen
Nicolas MatheisenOPβ€’5mo ago
good
Amgelo
Amgeloβ€’5mo ago
but a line later you completely scratch the indentation and write at the beginning of the line
No description
Amgelo
Amgeloβ€’5mo ago
it should be at the same "level" of indentation as the exampleEmbed declaration that way it's clear that what you're writing is inside the execute function not outside as I said, it doesn't matter in runtime, your code will do exactly the same thing it's just for you and us to better understand your code
Nicolas Matheisen
Nicolas MatheisenOPβ€’5mo ago
ahhh ok yeah the topic how to write better code I must learn too 😦 There is a book out teacher reccomend: Clean Code it called but don't read it now
Amgelo
Amgeloβ€’5mo ago
this should help with that, looks like a good guide
Nicolas Matheisen
Nicolas MatheisenOPβ€’5mo ago
uhhh thx :3
Amgelo
Amgeloβ€’5mo ago
though it recommends using the tab key, I personally recommend spaces it's a matter of preferences though as long as you're consistent and don't mix both, it should be fine
Nicolas Matheisen
Nicolas MatheisenOPβ€’5mo ago
πŸ˜‚ i program with my phone I ask on my work if I can catch the laptop at home they say no chase it's a secure thing.... and what is meaning the tab key?
Nicolas Matheisen
Nicolas MatheisenOPβ€’5mo ago
this is how It look like if I edit my codeπŸ˜‚πŸ’€πŸ’€πŸ’€
No description
Amgelo
Amgeloβ€’5mo ago
yeah you definitely should avoid programming in phone though this isn't related to djs anymore, if you have further issues with indentation or code style you should ask on #other-js-ts
Nicolas Matheisen
Nicolas MatheisenOPβ€’5mo ago
thx this is the inportant stuff I need now I need to understand this the only thing I know is that [] is an arrayπŸ˜…
Want results from more Discord servers?
Add your server