Event before interaction handlers are ran

There are ChatInputCommandRun and ContextMenuCommandRun events, which are emitted before the run method. Is there anything similar for interaction handlers which is emitted after parse but before run?
6 Replies
Favna
Favna2y ago
there isnt, but that is something that that could be added. What is the use case for this?
Fozzie
FozzieOP2y ago
Mostly logging purposes, I only want to log when an interaction is past parse though. I guess it would also be useful if you had a few interactions which were slower so you wanted to defer responses, you could do this all in one place.
Favna
Favna2y ago
would you expect it to emit only when some is returned, or also when none is? or I suppose option C is both but different events, but that can be achieved with a single if check on the end-user
Fozzie
FozzieOP2y ago
Yup, I was thinking only for some specifically for this one, and maybe a different event for none? Maybe something like InteractionHandlerRun for some and InteractionHandlerDenied for none?
Favna
Favna2y ago
Dumping the following here for @Answer Overflow
Solution
Want results from more Discord servers?
Add your server