interactionCreate listener
i just tried to use the listener, but there is an error when trying to press the button that I gave a custom id, am I doing something that has been changed in the latest version?
8 Replies
you shouldnt be using listeners to handle a button
Sapphire Framework
Buttons | Sapphire
Buttons are components that are clickable. You will recieve an interaction for every click of a button! Here's an
also would probably be helpful if you provided us the error
I think that event is not even registered (I’m not sure)
In constructor you did options = {}
And yeah, use interaction handlers
is the interactionHandler only for 1 command? or can create multiple commands, but how? is there an example?
there is no need to handle commands via an interaction handler. sapphire does it automatically unless you modified your registries settings
the link i provided shows you how to handle a button properly
thank, i'll try it
you have to reply to the interaction for the error to not appear