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
- 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 OPWhy the server think that I mention too many ppl???
Only my code is ~4000 types long
Unknown Userβ’5mo ago
Message Not Public
Sign In & Join Server To View
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
you mean the values the user selected?
oh, right
btw your indentation looks wrong
it shouldn't matter but it makes your code harder to read
I am not sure what do u mean π
this for instance is correct
good
but a line later you completely scratch the indentation and write at the beginning of the line
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
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
this should help with that, looks like a good guide
uhhh thx :3
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
π 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?
this is how It look like if I edit my codeππππ
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
thx
this is the inportant stuff I need now I need to understand this the only thing I know is that [] is an arrayπ