CommandInteraction Option max_value

Hey, i have the following options configured:
options: [
{
name: "amount",
description: "The amount of messages to delete",
type: "NUMBER",
required: true,
max_value: 100,
},
],
options: [
{
name: "amount",
description: "The amount of messages to delete",
type: "NUMBER",
required: true,
max_value: 100,
},
],
When i deploy my data then the command doesnt show up :/
16 Replies
monbrey
monbrey•3y ago
The whole command or just the option
Nlmyr
NlmyrOP•3y ago
the whole command the SlashCommandBuilder supports the feature
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
NlmyrOP•3y ago
discord.js
monbrey
monbrey•3y ago
And does it work if deployed without that option? Do you get any error?
Nlmyr
NlmyrOP•3y ago
Without my options it deployed i know what the error is the max_value Is there anyway to use this in JSON data?
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
NlmyrOP•3y ago
yes with max it does not work
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
NlmyrOP•3y ago
no i use JSON
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
NlmyrOP•3y ago
oh wait a sec i used max_value @senexis uses maxValue
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
NlmyrOP•3y ago
With maxValue it worked
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
NlmyrOP•3y ago
i deployed the command with the options i posted. then the command wont show up if i change max_value to maxValue it worked mmmh oh wait know its working with max_value am i dumb?! 😄 thank you @jiralite @senexis @monbrey for your help have i nice evening
Want results from more Discord servers?
Add your server