DiscordComponent

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
abstract val customId: Optional<String>

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

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
abstract val label: Optional<String>
Link copied to clipboard
abstract val maxLength: OptionalInt

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

Link copied to clipboard
abstract val maxValues: OptionalInt

the maximum amount of options allowed

Link copied to clipboard
abstract val minLength: OptionalInt

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

Link copied to clipboard
abstract val minValues: OptionalInt

the minimum amount of options allowed

Link copied to clipboard

the select menu options

Link copied to clipboard
abstract val placeholder: Optional<String>

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
abstract val type: ComponentType

the ComponentType of the component

Link copied to clipboard
abstract val url: Optional<String>

a url for link-style buttons

Link copied to clipboard
abstract val value: Optional<String>

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