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:
registry.registerContextMenuCommand(builder => builder.setName('Rob').setType(ApplicationCommandType.User));
registry.registerContextMenuCommand(builder => builder.setName('Rob').setType(ApplicationCommandType.User));
No description
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...
Jump to solution
1 Reply
Solution
Lily Wonhalf
Lily Wonhalf2mo ago
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
Want results from more Discord servers?
Add your server