class ButtonComponent
extends
Component<APIButtonComponent>export class ButtonComponent extends Component<APIButtonComponent>
Represents a button component
APIMessageComponent data :
The API data associated with this component
readonlyboolean disabled :
Whether this button is disabled
readonlyAPIMessageComponentEmoji | null emoji :
The emoji used in this button
readonlyButtonStyle style :
The style of this button
readonlyComponentType type :
The type of the component
equalsother: this | APIButtonComponent) : boolean (
other: this | APIButtonComponent
Whether or not the given components are equal
Inherited from: Component
toJSONAPIButtonComponent () :
Returns the API-compatible JSON for this component
Inherited from: Component