CommandOption
https://github.com/flamexdev/dsc-utils/blob/main/package/src/structures/commandOption.js
Type
Description
Required
string
1-32 lowercase character name matching ^[\w-]{1,32}$
Yes
Type
Description
Required
string
1-100 character description
Yes
Type
Description
Required
string or Number
the type of the value
Yes
List of available types: https://discord.com/developers/docs/interactions/slash-commands#application-command-object-application-command-option-type
All of these types can be provided with their value (Number) or name (string) (upper- and lowercase)
Type
Description
Default
Required
boolean
if the parameter is required or optional
false
No
Type
Description
Required
array of CommandChoices
choices for string and int types for the user to pick from
No
Type
Description
Required
array of CommandOptions
if the option is a subcommand or subcommand group type, this nested options will be the parameters
No
Last updated
Was this helpful?