#registerContextMenuCommand type error

1 messages · Page 1 of 1 (latest)

hallow hollow
#

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));
quiet vortexBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

swift sun
#

[This is a known bug of the latest discord.js version](#824411059443204127 message)

To bypass it for the time being, you can either downgrade, or do a little typing trickery like ApplicationCommandType.User as ContextMenuCommandType