Interface ApplicationCommandOptionData


  • @Immutable
    public interface ApplicationCommandOptionData
    • 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
      • 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.