Abstract
A builder that creates API-compatible JSON data for buttons.
Extends
ComponentBuilder<ButtonData>Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
ButtonData | APIButtonComponent | No | None |
Clears the id of this component, defaulting to a default incremented id.
Inherited from ComponentBuilderSets whether this button is disabled.
Name | Type | Optional | Description |
---|---|---|---|
disabled | boolean | Yes | Whether to disable this button |
Sets the id of this component.
Name | Type | Optional | Description |
---|---|---|---|
id | number | No | The 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 |