LabelComponentBuilder

Constructors

Link copied to clipboard
constructor(label: String)

Properties

Link copied to clipboard
Link copied to clipboard

An optional description text for the label; max 100 characters.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun build(): DiscordComponent
Link copied to clipboard
inline fun channelSelect(customId: String, builder: ChannelSelectBuilder.() -> Unit)

Adds a Channel select menu to the label, configured by the builder

Link copied to clipboard
inline fun checkbox(customId: String, builder: CheckboxBuilder.() -> Unit)

Adds a checkbox to the label, configured by the builder

Link copied to clipboard
inline fun checkboxGroup(customId: String, builder: CheckboxGroupBuilder.() -> Unit)

Adds a checkbox group to the label, configured by the builder

Link copied to clipboard
inline fun fileUpload(customId: String, builder: FileUploadBuilder.() -> Unit)

Adds a file upload to the label, configured by the builder

Link copied to clipboard
inline fun mentionableSelect(customId: String, builder: MentionableSelectBuilder.() -> Unit)

Adds a Mentionable select menu to the label, configured by the builder

Link copied to clipboard
inline fun radioGroup(customId: String, builder: RadioGroupBuilder.() -> Unit)

Adds a radio group to the label, configured by the builder

Link copied to clipboard
inline fun roleSelect(customId: String, builder: RoleSelectBuilder.() -> Unit)

Adds a Role select menu to the label, configured by the builder

Link copied to clipboard
inline fun stringSelect(customId: String, builder: StringSelectBuilder.() -> Unit)

Adds a String select menu to the label, configured by the builder

Link copied to clipboard
inline fun textInput(style: TextInputStyle, customId: String, builder: TextInputBuilder.() -> Unit)

Adds a Text input to the label, configured by the builder

Link copied to clipboard
inline fun userSelect(customId: String, builder: UserSelectBuilder.() -> Unit)

Adds a User select menu to the label, configured by the builder