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 User2y ago
Message Not Public
Sign In & Join Server To View
Noxxe
NoxxeOP2y ago
Discord.JS: v14.6.0
MrMythical
MrMythical2y ago
setTimeout or if using a collector, use end event
Noxxe
NoxxeOP2y ago
Would that end event be in the DJS docs by any chance?
d.js docs
d.js docs2y ago
event (event) InteractionCollector#end Emitted when the collector is finished collecting.
Noxxe
NoxxeOP2y ago
Cheers dude!
Want results from more Discord servers?
Add your server