Get value of the MesageButton Label in Djs v13
Hey, have a quick question. Im making a message button for a poll command, and when the button is clicked, I want to take the label's value, add one to it, and then make the label the new number. I cant figure out how to get the labels current value... Can anyone help?
4 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 OPDiscord.js: 13.16.0
Node Ver: 16.16.0
<ButtonInteraction>.component.label
should exist given that it just parses <ButtonInteraction>.message.components
Thanks!