Package discord4j.discordjson.json
Interface ApplicationCommandOptionData
-
@Immutable public interface ApplicationCommandOptionData
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description discord4j.discordjson.possible.Possible<Boolean>autocomplete()Whether this option supports auto complete or not -- default false.static discord4j.discordjson.json.ImmutableApplicationCommandOptionData.Builderbuilder()discord4j.discordjson.possible.Possible<List<Integer>>channelTypes()List of values of value of Channel.Type of which users can pick for the CHANNEL type option.discord4j.discordjson.possible.Possible<List<ApplicationCommandOptionChoiceData>>choices()choices for STRING, INTEGER, and NUMBER Application Command Option Types for the user to pick fromStringdescription()1-100 character descriptiondiscord4j.discordjson.possible.Possible<Double>maxValue()The maximum value allowed to be entered.discord4j.discordjson.possible.Possible<Double>minValue()The minimum value allowed to be entered.Stringname()1-32 character namediscord4j.discordjson.possible.Possible<List<ApplicationCommandOptionData>>options()if the option is a subcommand or subcommand group type, this nested options will be the parametersdiscord4j.discordjson.possible.Possible<Boolean>required()if the parameter is required or optional -- default falseinttype()value of ApplicationCommandOptionType
-
-
-
Method Detail
-
builder
static discord4j.discordjson.json.ImmutableApplicationCommandOptionData.Builder builder()
-
type
int type()
value of ApplicationCommandOptionType
-
name
String name()
1-32 character name
-
description
String description()
1-100 character description
-
required
discord4j.discordjson.possible.Possible<Boolean> required()
if the parameter is required or optional -- default false
-
choices
discord4j.discordjson.possible.Possible<List<ApplicationCommandOptionChoiceData>> choices()
choices for STRING, INTEGER, and NUMBER Application Command Option Types for the user to pick from
-
options
discord4j.discordjson.possible.Possible<List<ApplicationCommandOptionData>> options()
if the option is a subcommand or subcommand group type, this nested options will be the parameters
-
autocomplete
discord4j.discordjson.possible.Possible<Boolean> autocomplete()
Whether this option supports auto complete or not -- default false.May not be set if choices are present
-
channelTypes
discord4j.discordjson.possible.Possible<List<Integer>> channelTypes()
List of values of value of Channel.Type of which users can pick for the CHANNEL type option.If not provided, no restriction is placed on channel types.
-
minValue
discord4j.discordjson.possible.Possible<Double> minValue()
The minimum value allowed to be entered. Only valid for INTEGER and NUMBER type options. If not provided, no restriction is placed on the minimum value permitted.
-
maxValue
discord4j.discordjson.possible.Possible<Double> maxValue()
The maximum value allowed to be entered. Only valid for INTEGER and NUMBER type options. If not provided, no restriction is placed on the maximum value permitted.
-
-