class PremiumButtonBuilder

external
declare class PremiumButtonBuilder extends BaseButtonBuilder<APIButtonComponentWithSKUId>

A builder that creates API-compatible JSON data for premium buttons.

Constructors

Constructs a new instance of the PremiumButtonBuilder class

protectedreadonlyexternal
data : Partial<APIButtonComponentWithSKUId>

external
clearId() : this

Clears the id of this component, defaulting to a default incremented id.

Inherited from: ComponentBuilder

external
setDisabled(
disabled?: boolean
) : this

Sets whether this button is disabled.

Inherited from: BaseButtonBuilder

external
setId(
id: number
) : this

Sets the id of this component.

Inherited from: ComponentBuilder

external
setSKUId(
skuId: Snowflake
) : this

Sets the SKU id that represents a purchasable SKU for this button.

external
toJSON(
validationOverride?: boolean
) : APIButtonComponentWithSKUId

Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.

Inherited from: BaseButtonBuilder