Package-level declarations

Types

Link copied to clipboard

A component that is an accessory to a section component.

Link copied to clipboard
interface AccessoryHolder

An object which can have an accessory.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed interface ComponentBuilder
Link copied to clipboard

A builder for an object which can contain multiple components.

Link copied to clipboard

A component that is a child of a container component.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A button that prompts the user to purchase an SKU.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class SelectOptionBuilder(var label: String, var value: String)

A builder for a Discord Select Option.

Link copied to clipboard
Link copied to clipboard
class TextInputBuilder(var style: TextInputStyle, var customId: String, var label: String? = null) : ActionRowComponentBuilder

A builder for a Discord Text Input.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun ComponentContainerBuilder.file(builder: FileBuilder.() -> Unit)
Link copied to clipboard
inline fun ComponentContainerBuilder.fileUpload(customId: String, builder: FileUploadBuilder.() -> Unit)
Link copied to clipboard
inline fun AccessoryHolder.interactionButtonAccessory(style: ButtonStyle, customId: String, builder: ButtonBuilder.() -> Unit = {})

Adds an interaction button as an accessory to this section. This is mutually exclusive with other accessory components.

Link copied to clipboard
Link copied to clipboard
inline fun AccessoryHolder.linkButtonAccessory(url: String, builder: ButtonBuilder.() -> Unit = {})

Adds a link button as an accessory to this section. This is mutually exclusive with other accessory components.

Link copied to clipboard
Link copied to clipboard
inline fun StringSelectBuilder.option(label: String, value: String, builder: SelectOptionBuilder.() -> Unit = {})

Adds a new option to the select menu with the given label and value that can be configured by the builder.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard