#CommandInteraction Option max_value
49 messages · Page 1 of 1 (latest)
The whole command or just the option
the whole command
I am pretty sure discord.js v13.8 does not support that
the SlashCommandBuilder supports the feature
13.8 supports max_value. Using it just fine.
discord.js
And does it work if deployed without that option? Do you get any error?
Without my options it deployed
i know what the error is
the max_value
Is there anyway to use this in JSON data?
If you use the option but don't add max_value, does it work then?
yes
with max it does not work
And you're using the builder instead of just regular JSON?
no i use JSON
I'm just checking with what I have, I do also have a min_value as well, I'm not sure why it would be a limitation, but you could try that just to make sure.
So I just deployed this with discord.js 13.8, and it does get sent to the API and it is returned
It just seems the client-side validation on this is shit
Yeah it gets sent just fine (this is from a global command fetch())
oh wait a sec
In the GIF I managed to send 5, but if I put a number over 10, it suddenly starts validating wait nvm
i used max_value @blazing tapir uses maxValue
I mean could try, but this is not what I send to Discord.
Either will work
But your problem is that you deploy it and the whole command doesn't show up
I just copied and pasted your command data on version 13.8 and it showed up
With maxValue it worked
Nice!
i deployed the command with the options i posted.
then the command wont show up
if i change max_value to maxValue it worked
Yeah it just doesn't work like that
If an option doesn't exist, it just won't get parsed
mmmh
And here they are treated the same
https://github.com/discordjs/discord.js/blob/7e1904c2ad1542002794fc93408960c4de29eb69/src/structures/ApplicationCommand.js#L467
So changing that key wouldn't have solved it
Anyway shrugs
Discord ✨
oh wait know its working with max_value
am i dumb?! 😄
thank you @jade lance @blazing tapir @glossy jasper for your help
have i nice evening
You too