Introduce a timeout on Slash Commands

How would I go about adding a timeout to my slash commands that once the timeout is up, it removed any buttons or select menus from the components? Edit: How would I make it reset/cancel once a button is clicked. Any help would be greatly appreciated, even any guidance in the right direction?
6 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Noxxe
NoxxeOP3y ago
Discord.JS: v14.6.0
MrMythical
MrMythical3y ago
setTimeout or if using a collector, use end event
Noxxe
NoxxeOP3y ago
Would that end event be in the DJS docs by any chance?
d.js docs
d.js docs3y ago
event (event) InteractionCollector#end Emitted when the collector is finished collecting.
Noxxe
NoxxeOP3y ago
Cheers dude!

Did you find this page helpful?