Skip to content

Defined in: sdk/js/src/builders/button.ts:17

Type 2.

new ButtonBuilder(): ButtonBuilder

ButtonBuilder

get customId(): string

Defined in: sdk/js/src/builders/button.ts:52

The custom id, if any.

string

setCustomId(id): this

Defined in: sdk/js/src/builders/button.ts:37

string

this


setDisabled(disabled?): this

Defined in: sdk/js/src/builders/button.ts:47

boolean = true

this


setEmoji(value): this

Defined in: sdk/js/src/builders/button.ts:33

string

this


setLabel(label): this

Defined in: sdk/js/src/builders/button.ts:29

string

this


setStyle(style): this

Defined in: sdk/js/src/builders/button.ts:25

ButtonStyle

this


setURL(url): this

Defined in: sdk/js/src/builders/button.ts:42

A link button (https:// only; opened after the reader confirms). Sets the style.

string

this


toWit(): Button

Defined in: sdk/js/src/builders/button.ts:56

Button