Command_Option

struct

A parameter of an application command.

Property Type Description
autocomplete Boolean If autocomplete interactions are enabled for this option
channel_types
ArrayInteger
The channels shown will be restricted to these types
choices Choices for the user to pick from, max 25
description String 1-100 character description
description_localizations
MapString
Localization dictionary for the description field
max_length Integer The maximum allowed length (1-6000, STRING)
max_value Number The maximum value permitted (INTEGER/NUMBER)
min_length Integer The minimum allowed length (0-6000, STRING)
min_value Number The minimum value permitted (INTEGER/NUMBER)
name String 1-32 character name
name_localizations
MapString
Localization dictionary for the name field
options Nested options for subcommand and subcommand group types
required Boolean Whether the parameter is required, default false
type Integer Type of option (1 SUB_COMMAND, 2 SUB_COMMAND_GROUP, 3 STRING, 4 INTEGER, 5 BOOLEAN, 6 USER, 7 CHANNEL, 8 ROLE, 9 MENTIONABLE, 10 NUMBER, 11 ATTACHMENT)
part of the Apioo-Project