export declare class PremiumButtonBuilder extends BaseButtonBuilder<APIButtonComponentWithSKUId>
A builder that creates API-compatible JSON data for premium buttons.
Constructors
data?: Partial<APIButtonComponentWithSKUId>)
constructor(data?: Partial<APIButtonComponentWithSKUId>
Constructs a new instance of the PremiumButtonBuilder
class
protectedreadonlyPartial<APIButtonComponentWithSKUId> data :
setDisableddisabled?: boolean) : this (
disabled?: boolean
Sets whether this button is disabled.
Inherited from: BaseButtonBuilder
setSKUIdskuId: Snowflake) : this (
skuId: Snowflake
Sets the SKU id that represents a purchasable SKU for this button.
toJSONvalidationOverride?: boolean) : APIButtonComponentWithSKUId (
validationOverride?: boolean
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