editButton

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

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

Parameters

label

The Button text

emoji

The Button emoji

style

The Button style

disabled

Whether this button is disabled

bypassDefer

If true, do not defer interaction

action

Lambda to be executed when button is pressed