Shared handler
How to make shared
InteractionHandler
to handle buttons and select menus together?Solution:Jump to solution
you can export multiple classes in one file and sapphire will register them.
4 Replies
I believe you can't since the
interactionType
(or type
i forgot) option for InteractionHandlerOptions
is required, you might want to create 2 files in a folder within your interaction-handlers to organise your handlers.Oh but I needed this to reduce code duplicate as the way for handling them is same
Solution
you can export multiple classes in one file and sapphire will register them.