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•2y ago
The whole command or just the option
Nlmyr
Nlmyr•2y ago
the whole command the SlashCommandBuilder supports the feature
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
Nlmyr•2y ago
discord.js
monbrey
monbrey•2y ago
And does it work if deployed without that option? Do you get any error?
Nlmyr
Nlmyr•2y 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•2y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
Nlmyr•2y ago
yes with max it does not work
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
Nlmyr•2y ago
no i use JSON
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
Nlmyr•2y ago
oh wait a sec i used max_value @senexis uses maxValue
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
Nlmyr•2y ago
With maxValue it worked
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
Nlmyr•2y 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