Type error with ApplicationCommandType and ContextMenuCommandType
I just upgraded TypeScript and some other things in my package.json and it apparently now thinks that the following code is invalid:
When checking the types
So why are these types not compatible to each other? Is this possibly due to a version mismatch?
My versions:
Thanks in advance.
When checking the types
ContextMenuCommandBuilder#setType() requires the type ContextMenuCommandType, which is resolved to ApplicationCommandType.Message | ApplicationCommandType.User.So why are these types not compatible to each other? Is this possibly due to a version mismatch?
My versions:
Thanks in advance.