underctrl-io / commandkit

Only focus on what matters - Let CommandKit handle your commands and events in your Discord.js projects!
https://commandkit.js.org
MIT License
82 stars 9 forks source link

refactor: utilize `INTERACTION_CREATE` event for ButtonKit instead of using collector #49

Open twlite opened 6 months ago

twlite commented 6 months ago

Utilize INTERACTION_CREATE event for ButtonKit instead of using collector.

This allows developers to resume listener without having to set timeout. But this raises a question, should we keep current implementation as well? Collectors are useful for quick prompts such as

Do you really want to kick this user?

[No] [Yes]

which ends after n seconds usually.