Closed link-discord closed 2 years ago
This sounds more like an issue in your command's option (its defined as type 4) whereas number is type 10. Are you sure your option is a NUMBER one and not an INTEGER one?
Ooooooooooooooooooooooooooohhh Ok I feel insanely stupid now sorry
Which package is this bug report for?
discord.js
Issue description
The
interaction.options.getNumber()
function (for slash commands) can't resolve the option value because it expects the option to be of type 4 but due to api changes the option type for numbers is now 10https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-type
Error:
Code sample
Package version
14.0.0-dev.1657757514-fe34f48
Node.js version
Node.js version 16.14.0, Typescript version 4.7.4
Operating system
Linux Ubuntu
Priority this issue should have
Medium (should be fixed soon)
Which partials do you have configured?
Channel, Message
Which gateway intents are you subscribing to?
Guilds, GuildMessages, MessageContent
I have tested this issue on a development release
fe34f48