A builder that creates API-compatible JSON data for premium buttons.
Constructs a new instance of the
PremiumButtonBuilder
className | Type | Optional | Description |
---|---|---|---|
data | Partial<APIButtonComponentWithSKUId> | Yes | None |
ProtectedReadonly
Sets whether this button is disabled.
Name | Type | Optional | Description |
---|---|---|---|
disabled | boolean | Yes | Whether to disable this button |
Sets the SKU id that represents a purchasable SKU for this button.
Remarks
Only available when using premium-style buttons.Name | Type | Optional | Description |
---|---|---|---|
skuId | Snowflake | No | The SKU id to use |
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.
Name | Type | Optional | Description |
---|---|---|---|
validationOverride | boolean | Yes | Force validation to run/not run regardless of your global preference |