SimpleModalBuilder

class SimpleModalBuilder

DSL for building a Discord modal.

Constructors

Link copied to clipboard
fun SimpleModalBuilder()

Functions

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

Build a modal component using the InputBuilder.

fun input(    label: String,     style: TextInputStyle = TextInputStyle.Paragraph,     required: Boolean = true,     allowedLength: ClosedRange<Int>? = null,     value: String? = null,     placeholder: String? = null)

Build a modal component without using the DSL.