ModalBuilder

class ModalBuilder(var title: String, var customId: String) : RequestBuilder<DiscordModal> (source)

Constructors

Link copied to clipboard
constructor(title: String, customId: String)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun actionRow(builder: ActionRowBuilder.() -> Unit)

Adds an Action Row to the modal, configured by the builder.

Link copied to clipboard
inline fun label(label: String, builder: LabelComponentBuilder.() -> Unit)

Adds a Label to the modal, configured by the builder

Link copied to clipboard
inline fun textDisplay(builder: TextDisplayBuilder.() -> Unit)

Adds a text display to the modal, configured by the builder

Link copied to clipboard
open override fun toRequest(): DiscordModal