What is the best way to handle components when they've been timed out?

Hi, I'm sorry, I've probably asked this question a long time ago but have forgotten the answer as it has been a minute. What is the best way to go about timing buttons/components out? For example, a 60-second collector is started when a command is ran. When the 60 seconds are up, the buttons either disable or (what I'd prefer) have a different custom ID so that an error reply shows if the ID says the button is disabled. Also, what should be done (if anything) for when let's say the bot goes offline during the time a collector is running, how does the button disable/become timed out then? Thanks for any help.
3 Replies
d.js toolkit
d.js toolkit2mo 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
Swyftey
SwyfteyOP2mo ago
No description
Swyftey
SwyfteyOP2mo ago
So, when the bot starts back up, all the messages within the database are edited to be "timed out"? Ok, thank you.
Want results from more Discord servers?
Add your server