is there a way to make discord wait for a second button input after the first update?
Also update the buttons in the action row...
15 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.use a collector or uhh one sec
InteractionResponse#awaitMessageComponent()
Collects a single component interaction that passes the filter. The Promise will reject if the time expires.
ooooh okay cool! Thank you
also, am I updating the components in the action row correctly? I'm not getting an error for it but it's not updating
i cannot see the full file
oh okay
one sec I'll get a snippet
what is
row
defined asrow is an action row that holds two buttons named answer1 and answer2
row.answer1, you'd have to acess them using row.components (or something like that, but not .answer1)
okay, so would the components just be an array inside the action row? I.e.
row.components[0]
.setStyle()
row.components[1]
.setStyle
?
Structures from the API cannot be edited directly. To do so, you can create a new structure (a builder) using the
.from()
method
oooh okay. so I would have to create a new action row all together. That works! Thank you so much for your help!
you can also use the old one but use something like components[0].data.label = ""
(i dont know the exact properties for actionrowbuilders)
Thank you for the help luna!