Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
interface InlineComponent
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun ActionRow(uniqueId: Int = -1, block: InlineActionRow.() -> Unit): ActionRow
Link copied to clipboard

Returns a list containing the results of disabling each component in the original collection.

fun <T : Component> Sequence<T>.asDisabled(): <Error class: unknown class>

Returns a sequence containing the results of disabling each component in the original sequence.

Link copied to clipboard

Returns a list containing the results of enabling each component in the original collection.

fun <T : Component> Sequence<T>.asEnabled(): <Error class: unknown class>

Returns a sequence containing the results of enabling each component in the original sequence.

Link copied to clipboard
inline fun Container(uniqueId: Int = -1, accentColor: Int? = null, spoiler: Boolean = false, block: InlineContainer.() -> Unit): Container
Link copied to clipboard
fun FileDisplay(fileName: String, uniqueId: Int = -1, spoiler: Boolean = false, block: InlineFileDisplay.() -> Unit = {}): FileDisplay
fun FileDisplay(file: FileUpload, uniqueId: Int = -1, spoiler: Boolean = false, block: InlineFileDisplay.() -> Unit = {}): FileDisplay
Link copied to clipboard
inline fun <T : Component> ComponentTree<*>.find(crossinline filter: (T) -> Boolean): T?

Finds the first component of type T satisfying the filter, recursively.

Link copied to clipboard
inline fun <T : Component> ComponentTree<*>.findAll(): List<T>

Finds all components of type T, recursively.

inline fun <T : Component> ComponentTree<T>.findAll(crossinline filter: (T) -> Boolean): List<T>

Finds all components of type T satisfying the filter, recursively.

Link copied to clipboard
Link copied to clipboard
inline fun Label(label: String? = null, uniqueId: Int = -1, description: String? = null, child: LabelChildComponent? = null, block: InlineLabel.() -> Unit): Label

Component that contains a label, an optional description, and a child component, see Label.

Link copied to clipboard
fun link(url: String, label: String? = null, emoji: Emoji? = null, disabled: Boolean = false): Button
Link copied to clipboard
inline fun MediaGallery(uniqueId: Int = -1, block: InlineMediaGallery.() -> Unit): MediaGallery
Link copied to clipboard
inline fun MediaGalleryItem(url: String, description: String? = null, spoiler: Boolean = false, block: InlineMediaGalleryItem.() -> Unit = {}): MediaGalleryItem
inline fun MediaGalleryItem(file: FileUpload, description: String? = null, spoiler: Boolean = false, block: InlineMediaGalleryItem.() -> Unit = {}): MediaGalleryItem
Link copied to clipboard
fun StringSelectMenu.Builder.option(label: String, value: String, description: String? = null, emoji: Emoji? = null, default: Boolean = false): StringSelectMenu.Builder

Adds an option to this select menu, see SelectOption.

Link copied to clipboard
fun row(component: ActionRowChildComponent, vararg components: ActionRowChildComponent): ActionRow

Construct an ActionRow from the provided components

Link copied to clipboard

Construct an ActionRow from the provided components

Link copied to clipboard
inline fun Section(accessory: SectionAccessoryComponent? = null, uniqueId: Int = -1, block: InlineSection.() -> Unit): Section

See Section.

Link copied to clipboard
fun SelectOption(label: String, value: String, description: String? = null, emoji: Emoji? = null, default: Boolean = false): SelectOption

Creates a select menu option, see SelectOption.

Link copied to clipboard
inline fun Separator(uniqueId: Int = -1, isDivider: Boolean = true, spacing: Separator.Spacing = Spacing.SMALL, block: InlineSeparator.() -> Unit = {}): Separator
Link copied to clipboard

Sets the minimum and maximum required length on this TextInput component.

Link copied to clipboard
inline fun StringSelectMenu(customId: String, uniqueId: Int = -1, placeholder: String? = null, valueRange: IntRange? = null, required: Boolean? = null, disabled: Boolean = false, block: InlineStringSelectMenu.() -> Unit): StringSelectMenu

Represents a selection of options, see StringSelectMenu.

Link copied to clipboard
inline fun TextDisplay(content: String? = null, uniqueId: Int = -1, block: InlineTextDisplay.() -> Unit = {}): TextDisplay
Link copied to clipboard
inline fun TextInput(customId: String, style: TextInputStyle, uniqueId: Int = -1, isRequired: Boolean = true, range: IntRange? = null, value: String? = null, placeholder: String? = null, block: InlineTextInput.() -> Unit = {}): TextInput

Discord text input, see TextInput.

Link copied to clipboard
fun Thumbnail(url: String, uniqueId: Int = -1, description: String? = null, spoiler: Boolean = false, block: InlineThumbnail.() -> Unit = {}): Thumbnail
fun Thumbnail(file: FileUpload, uniqueId: Int = -1, description: String? = null, spoiler: Boolean = false, block: InlineThumbnail.() -> Unit = {}): Thumbnail
Link copied to clipboard
Link copied to clipboard
fun <T : Component> Iterable<T>.withDisabled(disabled: Boolean): List<T>

Returns a list containing the results of disabling/enabling each component in the original collection.

fun <T : Component> Sequence<T>.withDisabled(disabled: Boolean): <Error class: unknown class>

Returns a sequence containing the results of disabling/enabling each component in the original sequence.