Lioness100
Explore posts from serversDIAdiscord.js - Imagine a boo! 👻
•Created by Lioness100 on 11/12/2022 in #djs-questions
Interaction type is too narrow
Currently the
Interaction
type is:
I'm creating a function that takes an Interaction
as a parameter, but typescript is reporting errors because the type is too narrow. In my case, I'm trying to input a ContextMenuCommandInteraction
, but the type requires either a MessageContextMenuCommandInteraction
or UserContextMenuCommandInteraction
. Is there any way to use a general ContextMenuCommandInteraction
with passing it in like:
Every time?7 replies