MenuButtonRowBuilder

class MenuButtonRowBuilder

Builder functions for menu buttons.

Constructors

Link copied to clipboard
fun MenuButtonRowBuilder()

Functions

Link copied to clipboard
fun actionButton(    label: String?,     emoji: DiscordEmoji?,     style: ButtonStyle = ButtonStyle.Secondary,     disabled: Boolean = false,     action: suspend ComponentInteraction.() -> Unit)

A Discord button component. Exposes the button press interaction.

Link copied to clipboard
fun button(    label: String?,     emoji: DiscordEmoji?,     style: ButtonStyle = ButtonStyle.Secondary,     disabled: Boolean = false,     action: suspend Menu.() -> Unit)

A Discord button component. Exposes the menu for navigation functions.

Link copied to clipboard
fun editButton(    label: String?,     emoji: DiscordEmoji?,     style: ButtonStyle = ButtonStyle.Secondary,     disabled: Boolean = false,     action: suspend EmbedBuilder.() -> Unit)

A Discord button component. Exposes the current embed page to be edited.

Link copied to clipboard
fun linkButton(    label: String?,     emoji: DiscordEmoji?,     url: String,     disabled: Boolean = false)

A Discord link button component. Opens the specified link in the browser.