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)
Content copied to clipboard
Link copied to clipboard
DSL for building a Discord modal.
Link copied to clipboard
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?>>
Content copied to clipboard
Create a discord modal and collect the input.