How to correctly define ChatInputCommandInteraction, I tried importing it from the framework, however is returned this: TypeError: Right-hand side of 'instanceof' is not an object
I'm trying to do this:
I have a createError function, which sends a embed with the provided text and then deletes the message and the embed after some seconds, however I want it only reply if the variable is a interaction instance.
Here's the createError code: https://pastebin.com/nNHV5Xr4
isInteractionInstance function: https://pastebin.com/fKsTMAUi