discord-interactions
discord-interactions copied to clipboard
Missing min_value and max_value options
https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure
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);