discord-interactions icon indicating copy to clipboard operation
discord-interactions copied to clipboard

Missing min_value and max_value options

Open dominik-korsa opened this issue 3 years ago • 0 comments

https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure

image

     await slashCommandClient.createCommand({
        name: 'complete',
        description: 'Complete your order',
        options: [
            {
                name: 'count',
                type: 4,
                min_value: 1, // Error: Object literal may only specify known properties, and 'min_value' does not exist in type 'ApplicationCommandOption'.
                required: true,
            },
        ]
    }, guildId);

dominik-korsa avatar Dec 05 '21 20:12 dominik-korsa