Open PAdventures opened 1 month ago
This is a discord.js bug. This will be fixed after the next discord.js release. For now, use the string types:
new ContextMenuCommandBuilder()
.setType('Message') // 'Message'|'User'
https://github.com/discordjs/discord.js/issues/10535 https://github.com/discordjs/discord.js/issues/10533 https://github.com/discordjs/discord.js/pull/10524
This is a discord.js bug. This will be fixed after the next discord.js release. For now, use the string types:
new ContextMenuCommandBuilder() .setType('Message') // 'Message'|'User'
discordjs/discord.js#10535 discordjs/discord.js#10533 discordjs/discord.js#10524
typescript complains on that method
Argument of type '"User"' is not assignable to parameter of type 'ContextMenuCommandType'.
This is a discord.js bug. This will be fixed after the next discord.js release. For now, use the string types:
new ContextMenuCommandBuilder() .setType('Message') // 'Message'|'User'
discordjs/discord.js#10535 discordjs/discord.js#10533 discordjs/discord.js#10524
typescript complains on that method
Argument of type '"User"' is not assignable to parameter of type 'ContextMenuCommandType'.
That will only occur when using the builder from discord.js instead of reciple's context menu builder class which extends discord.js's
A temporary fix is either using "Message"|"User"
or import ApplicationCommandType
from discord-api-types/v10
Which package is this bug report for?
@reciple/core & create-reciple
Issue description
npm create reciple@latest
src/commands/PingCommand.ts
Exact error:
Code sample
Versions
Dependencies
Dev Dependencies
Runtime
OS MacBook Air:
15.0.1