ApplicationCommandOption

data class ApplicationCommandOption(val type: ApplicationCommandOptionType, val name: String, val nameLocalizations: Optional<Map<Locale, String>?> = Optional.Missing(), val description: String, val descriptionLocalizations: Optional<Map<Locale, String>?> = Optional.Missing(), val default: OptionalBoolean = OptionalBoolean.Missing, val required: OptionalBoolean = OptionalBoolean.Missing, val choices: Optional<List<Choice>> = Optional.Missing(), val autocomplete: OptionalBoolean = OptionalBoolean.Missing, val options: Optional<List<ApplicationCommandOption>> = Optional.Missing(), val channelTypes: Optional<List<ChannelType>> = Optional.Missing(), val minValue: Optional<JsonPrimitive> = Optional.Missing(), val maxValue: Optional<JsonPrimitive> = Optional.Missing(), val minLength: OptionalInt = OptionalInt.Missing, val maxLength: OptionalInt = OptionalInt.Missing)(source)

Constructors

Link copied to clipboard
constructor(type: ApplicationCommandOptionType, name: String, nameLocalizations: Optional<Map<Locale, String>?> = Optional.Missing(), description: String, descriptionLocalizations: Optional<Map<Locale, String>?> = Optional.Missing(), default: OptionalBoolean = OptionalBoolean.Missing, required: OptionalBoolean = OptionalBoolean.Missing, choices: Optional<List<Choice>> = Optional.Missing(), autocomplete: OptionalBoolean = OptionalBoolean.Missing, options: Optional<List<ApplicationCommandOption>> = Optional.Missing(), channelTypes: Optional<List<ChannelType>> = Optional.Missing(), minValue: Optional<JsonPrimitive> = Optional.Missing(), maxValue: Optional<JsonPrimitive> = Optional.Missing(), minLength: OptionalInt = OptionalInt.Missing, maxLength: OptionalInt = OptionalInt.Missing)

Properties

Link copied to clipboard
Link copied to clipboard
@SerialName(value = "channel_types")
val channelTypes: Optional<List<ChannelType>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "description_localizations")
val descriptionLocalizations: Optional<Map<Locale, String>?>
Link copied to clipboard
@SerialName(value = "max_length")
val maxLength: OptionalInt
Link copied to clipboard
@SerialName(value = "max_value")
val maxValue: Optional<JsonPrimitive>
Link copied to clipboard
@SerialName(value = "min_length")
val minLength: OptionalInt
Link copied to clipboard
@SerialName(value = "min_value")
val minValue: Optional<JsonPrimitive>
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "name_localizations")
val nameLocalizations: Optional<Map<Locale, String>?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard