InteractionButtonBuilder

class InteractionButtonBuilder(var style: ButtonStyle, var customId: String) : ButtonBuilder(source)

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

Parameters

style

the style of this button, ButtonStyle.Link is not valid.

customId

the ID of this button, used to identify component interactions.

Constructors

Link copied to clipboard
constructor(style: ButtonStyle, customId: String)

Properties

Link copied to clipboard
Link copied to clipboard

Whether the component is disabled. Defaults to false.

Link copied to clipboard

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.

Link copied to clipboard

Functions

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