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
d.js toolkit
d.js toolkit14mo 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
Beaver0722
Beaver0722OP14mo ago
Discord.js: 13.16.0 Node Ver: 16.16.0
duck
duck14mo ago
<ButtonInteraction>.component.label should exist given that it just parses <ButtonInteraction>.message.components
Beaver0722
Beaver0722OP14mo ago
Thanks!
Want results from more Discord servers?
Add your server