Skip to content

CreateButton

Defined in: packages/builders/src/components.ts:279

new CreateButton(): CreateButton

CreateButton

setCustomId(value): this

Defined in: packages/builders/src/components.ts:302

string

this


setDisabled(value?): this

Defined in: packages/builders/src/components.ts:342

boolean = true

this


setEmoji(emoji): this

Defined in: packages/builders/src/components.ts:337

string | APIComponentEmoji

this


setLabel(value): this

Defined in: packages/builders/src/components.ts:309

string

this


setSKUId(skuId): this

Defined in: packages/builders/src/components.ts:331

Makes this a premium (purchase) button for a SKU. Premium buttons carry no label, emoji, custom ID or URL.

string

this


setStyle(style): this

Defined in: packages/builders/src/components.ts:285

Sets the style and drops fields that style cannot carry.

1 | 2 | 3 | 4 | 5 | 6

this


setURL(value): this

Defined in: packages/builders/src/components.ts:314

string

this


toJSON(): APIButtonPayload

Defined in: packages/builders/src/components.ts:346

APIButtonPayload