Package-level declarations
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: ModalParentInteractionBehavior, title: String, builder: SimpleModalBuilder.() -> Unit): Args2<DeferredEphemeralMessageInteractionResponseBehavior, Array<String?>>
Create a discord modal and collect the input.
Link copied to clipboard
suspend fun promptSelect(interaction: ApplicationCommandInteraction, builder: SimpleSelectBuilder.() -> Unit): Args2<DeferredEphemeralMessageInteractionResponseBehavior, List<String>>
Create a discord select menu.