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
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
a developer-defined identifier for the button, max 100 characters
Link copied to clipboard
Link copied to clipboard
whether the button is disabled, default false
Link copied to clipboard
an DiscordPartialEmoji that appears on the button (if the component is a button)
Link copied to clipboard
the maximum input length for a text input, min 1, max 4000.
Link copied to clipboard
the maximum amount of options allowed
Link copied to clipboard
the minimum input length for a text input, min 0, max 4000.
Link copied to clipboard
the minimum amount of options allowed
Link copied to clipboard
the select menu options
Link copied to clipboard
the placeholder text for the select menu
Link copied to clipboard
whether this component is required to be filled, default false.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
the ComponentType of the component