Interface ApplicationCommandOptionChoiceData


@Immutable public interface ApplicationCommandOptionChoiceData
  • Method Summary

    Modifier and Type
    Method
    Description
    static discord4j.discordjson.json.ImmutableApplicationCommandOptionChoiceData.Builder
     
    1-100 character choice name
    discord4j.discordjson.possible.Possible<Optional<Map<String,String>>>
     
    value of the choice, should be either an up to 100 character String for ApplicationCommandOptionType.STRING, a Byte/Short/Integer/Long for ApplicationCommandOptionType.INTEGER or a Float/Double for ApplicationCommandOptionType.NUMBER.
  • Method Details

    • builder

      static discord4j.discordjson.json.ImmutableApplicationCommandOptionChoiceData.Builder builder()
    • name

      String name()
      1-100 character choice name
    • nameLocalizations

      discord4j.discordjson.possible.Possible<Optional<Map<String,String>>> nameLocalizations()
    • value

      Object value()
      value of the choice, should be either an up to 100 character String for ApplicationCommandOptionType.STRING, a Byte/Short/Integer/Long for ApplicationCommandOptionType.INTEGER or a Float/Double for ApplicationCommandOptionType.NUMBER.
      See Also: