Types

Link copied to clipboard
class InteractionButtonBuilder(var style: ButtonStyle, var customId: String) : ButtonBuilder

A builder for a button that can create Interactions when clicked.

Link copied to clipboard

A button that links to the url.

Functions

Link copied to clipboard
abstract override fun build(): DiscordChatComponent

Properties

Link copied to clipboard

Whether the component is disabled. Defaults to false.

Link copied to clipboard
var emoji: DiscordPartialEmoji?

The emoji that appears on the button, either this and/or label need to be set for the button to be valid.

Link copied to clipboard

The text that appears on the button, either this and/or emoji need to be set for the button to be valid.