Buttons working on past activities

Hey everyone. I'm making an interaction with an embed and buttons. The problem is, when a new interaction is called, the new buttons still work on the past embed (doing the calculations and all of that) as if it shares the same buttons, what can I do to make sure the activity is fully ended and the buttons only work on the same embed?
6 Replies
d.js toolkit
d.js toolkit16mo 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!
Pijus Ran
Pijus RanOP16mo ago
client.on('interactionCreate', bi => {}) Yeah I already did that
Pijus Ran
Pijus RanOP16mo ago
this is the one of many end results
No description
Pijus Ran
Pijus RanOP16mo ago
The button is removed on every end possibility Once I start a new interaction and press the button to draw another card it adds the card on both the new card list and also adds it onto the old one It's like the interaction didn't end and is still awaiting imput Is there documentation on that?
d.js docs
d.js docs16mo ago
guide Message Components: Component interactions - Component collectors read more
Pijus Ran
Pijus RanOP16mo ago
And I should replace this with the collector right? I'll try it, thank you OMG it worked out perfectly. Thank you so much🤘
Want results from more Discord servers?
Add your server