Remove or disable buttons after the collector ends

How to remove or disable buttons from a message after the collector of this message ends? I have a lot of collectors, some of them edit them selfs, sometimes with new buttons and new collectors, so the previous one is stopped but the buttons is replaced, so them don't need to be removed or disabled. I saw someone not using collectors because of this, the buttons stop working after some time and the user thinks that it's broken, but for that I need to pass data within the customId which is impractical for me. I don't need to the buttons keep working forever, but I don't want the users complaining about the buttons not working...
1 Reply
d.js docs
d.js docs3y ago
• 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.
Want results from more Discord servers?
Add your server