ButtonFactory

Button factory provided by Buttons.

Functions

Link copied to clipboard
@CheckReturnValue
fun ephemeral(): EphemeralButtonBuilder

Creates an ephemeral button builder.

inline suspend fun ephemeral(block: EphemeralButtonBuilder.() -> Unit): Button

Creates an ephemeral button.

Link copied to clipboard
@CheckReturnValue
fun persistent(): PersistentButtonBuilder

Creates a persistent button builder.

inline suspend fun persistent(block: PersistentButtonBuilder.() -> Unit): Button

Creates a persistent button.

Link copied to clipboard
@CheckReturnValue
fun withEmoji(aliasOrUnicode: String?): ButtonFactory

Creates a new button factory with the provided emoji alias / emoji unicode.