registerContextMenuCommand type error
I recently updated all of my packages and I expected some errors to popup and I've managed to fix most of them except this one:
Argument of type 'ApplicationCommandType.User' is not assignable to parameter of type 'ContextMenuCommandType'.
This error appears on this line:
Solution:Jump to solution
This is a known bug of the latest discord.js version
To bypass it for the time being, you can either downgrade, or do a little typing trickery like
ApplicationCommandType.User as ContextMenuCommandType
...1 Reply
Solution
This is a known bug of the latest discord.js version
To bypass it for the time being, you can either downgrade, or do a little typing trickery like
ApplicationCommandType.User as ContextMenuCommandType