Package me.jakejmattson.discordkt.prompts

Types

Link copied to clipboard
data class InputBuilder(    val label: String,     var style: TextInputStyle = TextInputStyle.Paragraph,     var required: Boolean = true,     var allowedLength: ClosedRange<Int>? = null,     var value: String? = null,     var placeholder: String? = null)
Link copied to clipboard
class SimpleModalBuilder

DSL for building a Discord modal.

Link copied to clipboard
class SimpleSelectBuilder

A simplified builder for a select menu.

Functions

Link copied to clipboard
suspend fun promptModal(    interaction: ApplicationCommandInteraction,     title: String,     builder: SimpleModalBuilder.() -> Unit): Args2<DeferredEphemeralMessageInteractionResponseBehavior, Array<String?>>

Create a discord modal and collect the input.