DiscordChatComponent

data class DiscordChatComponent(val type: ComponentType, val style: Optional<ButtonStyle> = Optional.Missing(), val label: Optional<String> = Optional.Missing(), val emoji: Optional<DiscordPartialEmoji> = Optional.Missing(), val customId: Optional<String> = Optional.Missing(), val url: Optional<String> = Optional.Missing(), val disabled: OptionalBoolean = OptionalBoolean.Missing, val components: Optional<List<DiscordComponent>> = Optional.Missing(), val options: Optional<List<DiscordSelectOption>> = Optional.Missing(), val placeholder: Optional<String> = Optional.Missing(), val defaultValues: Optional<List<DiscordSelectDefaultValue>> = Optional.Missing(), val minValues: OptionalInt = OptionalInt.Missing, val maxValues: OptionalInt = OptionalInt.Missing, val minLength: OptionalInt = OptionalInt.Missing, val maxLength: OptionalInt = OptionalInt.Missing, val required: OptionalBoolean = OptionalBoolean.Missing, val value: Optional<String> = Optional.Missing(), val channelTypes: Optional<List<ChannelType>> = Optional.Missing(), val skuId: OptionalSnowflake = OptionalSnowflake.Missing) : DiscordComponent(source)

Constructors

Link copied to clipboard
constructor(type: ComponentType, style: Optional<ButtonStyle> = Optional.Missing(), label: Optional<String> = Optional.Missing(), emoji: Optional<DiscordPartialEmoji> = Optional.Missing(), customId: Optional<String> = Optional.Missing(), url: Optional<String> = Optional.Missing(), disabled: OptionalBoolean = OptionalBoolean.Missing, components: Optional<List<DiscordComponent>> = Optional.Missing(), options: Optional<List<DiscordSelectOption>> = Optional.Missing(), placeholder: Optional<String> = Optional.Missing(), defaultValues: Optional<List<DiscordSelectDefaultValue>> = Optional.Missing(), minValues: OptionalInt = OptionalInt.Missing, maxValues: OptionalInt = OptionalInt.Missing, minLength: OptionalInt = OptionalInt.Missing, maxLength: OptionalInt = OptionalInt.Missing, required: OptionalBoolean = OptionalBoolean.Missing, value: Optional<String> = Optional.Missing(), channelTypes: Optional<List<ChannelType>> = Optional.Missing(), skuId: OptionalSnowflake = OptionalSnowflake.Missing)

Properties

Link copied to clipboard
@SerialName(value = "channel_types")
open override val channelTypes: Optional<List<ChannelType>>

List of channel types to include in the channel select component (ComponentType.ChannelSelect)

Link copied to clipboard

a list of child components (for action rows)

Link copied to clipboard
@SerialName(value = "custom_id")
open override val customId: Optional<String>

a developer-defined identifier for the button, max 100 characters

Link copied to clipboard
@SerialName(value = "default_values")
open override val defaultValues: Optional<List<DiscordSelectDefaultValue>>
Link copied to clipboard
open override val disabled: OptionalBoolean

whether the button is disabled, default false

Link copied to clipboard
open override val emoji: Optional<DiscordPartialEmoji>

an DiscordPartialEmoji that appears on the button (if the component is a button)

Link copied to clipboard
open override val label: Optional<String>
Link copied to clipboard
@SerialName(value = "max_length")
open override val maxLength: OptionalInt

the maximum input length for a text input, min 1, max 4000.

Link copied to clipboard
@SerialName(value = "max_values")
open override val maxValues: OptionalInt

the maximum amount of options allowed

Link copied to clipboard
@SerialName(value = "min_length")
open override val minLength: OptionalInt

the minimum input length for a text input, min 0, max 4000.

Link copied to clipboard
@SerialName(value = "min_values")
open override val minValues: OptionalInt

the minimum amount of options allowed

Link copied to clipboard

the select menu options

Link copied to clipboard
open override val placeholder: Optional<String>

the placeholder text for the select menu

Link copied to clipboard
open override val required: OptionalBoolean

whether this component is required to be filled, default false.

Link copied to clipboard
@SerialName(value = "sku_id")
val skuId: OptionalSnowflake
Link copied to clipboard
Link copied to clipboard
open override val type: ComponentType

the ComponentType of the component

Link copied to clipboard
open override val url: Optional<String>

a url for link-style buttons

Link copied to clipboard
open override val value: Optional<String>

a pre-filled value for this component, max 4000 characters.