#event emissions
15 messages · Page 1 of 1 (latest)
Why not put both things in one handler?
I dont see why you wouldnt
Yeah, but why?
basically idk how to make a handler for buttons and selects and stuff
Interaction#isButton()
Indicates whether this interaction is a [ButtonInteraction](<https://discord.js.org/#/docs/discord.js/stable/class/ButtonInteraction>).
Interaction#isSelectMenu()
Indicates whether this interaction is a [SelectMenuInteraction](<https://discord.js.org/#/docs/discord.js/stable/class/SelectMenuInteraction>).
See the above, and base the handler off of the command one.
You can use a collector, it will make your life easier
Collector
Abstract class for defining a new Collector.
Popular Topics: Collectors
read more
would it be t he saem