Abstract
A builder that creates API-compatible JSON data for buttons.
Extends
ComponentBuilder<ButtonData>Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
ButtonData | APIButtonComponent | No | None |
Sets whether this button is disabled.
Name | Type | Optional | Description |
---|---|---|---|
disabled | boolean | Yes | Whether to disable this button |
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 |