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
Favna12mo ago
there isnt, but that is something that that could be added. What is the use case for this?
Fozzie
Fozzie12mo 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
Favna12mo 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
Fozzie12mo 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
Favna12mo ago
Dumping the following here for @Answer Overflow
Solution
Favna
Favna12mo ago