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.Builder
builder()
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 fromString
description()
1-100 character descriptiondiscord4j.discordjson.possible.Possible<Optional<Map<String,String>>>
descriptionLocalizations()
discord4j.discordjson.possible.Possible<Integer>
maxLength()
The maximum value allowed to be entered (minimum of 1).discord4j.discordjson.possible.Possible<Double>
maxValue()
The maximum value allowed to be entered.discord4j.discordjson.possible.Possible<Integer>
minLength()
The minimum value allowed to be entered (minimum of 0).discord4j.discordjson.possible.Possible<Double>
minValue()
The minimum value allowed to be entered.String
name()
1-32 character namediscord4j.discordjson.possible.Possible<Optional<Map<String,String>>>
nameLocalizations()
discord4j.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 falseint
type()
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
-
nameLocalizations
discord4j.discordjson.possible.Possible<Optional<Map<String,String>>> nameLocalizations()
-
description
String description()
1-100 character description
-
descriptionLocalizations
discord4j.discordjson.possible.Possible<Optional<Map<String,String>>> descriptionLocalizations()
-
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.
-
minLength
discord4j.discordjson.possible.Possible<Integer> minLength()
The minimum value allowed to be entered (minimum of 0). Only valid for STRING type option. If not provided, no restriction is placed on the minimum value permitted.
-
maxLength
discord4j.discordjson.possible.Possible<Integer> maxLength()
The maximum value allowed to be entered (minimum of 1). Only valid for STRING type option. If not provided, no restriction is placed on the maximum value permitted.
-
-