Interface ApplicationCommandOptionData


@Immutable public interface ApplicationCommandOptionData
  • Method Summary

    Modifier and Type
    Method
    Description
    discord4j.discordjson.possible.Possible<Boolean>
    Whether this option supports auto complete or not -- default false.
    static discord4j.discordjson.json.ImmutableApplicationCommandOptionData.Builder
     
    discord4j.discordjson.possible.Possible<List<Integer>>
    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 for STRING, INTEGER, and NUMBER Application Command Option Types for the user to pick from
    1-100 character description
    discord4j.discordjson.possible.Possible<Optional<Map<String,String>>>
     
    discord4j.discordjson.possible.Possible<Integer>
    The maximum value allowed to be entered (minimum of 1).
    discord4j.discordjson.possible.Possible<Double>
    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>
    The minimum value allowed to be entered.
    1-32 character name
    discord4j.discordjson.possible.Possible<Optional<Map<String,String>>>
     
    discord4j.discordjson.possible.Possible<List<ApplicationCommandOptionData>>
    if the option is a subcommand or subcommand group type, this nested options will be the parameters
    discord4j.discordjson.possible.Possible<Boolean>
    if the parameter is required or optional -- default false
    int
    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

      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.