export declare abstract class BaseButtonBuilder<ButtonData extends APIButtonComponent> extends ComponentBuilder<ButtonData>
A builder that creates API-compatible JSON data for buttons.
Type Parameters
APIButtonComponent ButtonData extends
protectedreadonlyPartial<ButtonData> data :
setDisableddisabled?: boolean) : this (
disabled?: boolean
Sets whether this button is disabled.
toJSONvalidationOverride?: boolean) : ButtonData (
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.