Package discord4j.discordjson.json
Interface ApplicationCommandOptionData
@Immutable
public interface ApplicationCommandOptionData
-
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.discordjson.possible.Possible<Boolean>Whether this option supports auto complete or not -- default false.static discord4j.discordjson.json.ImmutableApplicationCommandOptionData.Builderbuilder()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 from1-100 character descriptiondiscord4j.discordjson.possible.Possible<Integer>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>The minimum value allowed to be entered (minimum of 0).discord4j.discordjson.possible.Possible<Double>minValue()The minimum value allowed to be entered.name()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 Details
-
builder
static discord4j.discordjson.json.ImmutableApplicationCommandOptionData.Builder builder() -
type
int type()value of ApplicationCommandOptionType -
name
String name()1-32 character name -
nameLocalizations
-
description
String description()1-100 character description -
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
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.
-