ButtonComponent

export class ButtonComponent extends Component<APIButtonComponent>
export class ButtonComponent extends Component<APIButtonComponent>
Represents a button component
Readonly
customId:string | null
The custom id of this button (only defined on non-link buttons)
The API data associated with this component
Inherited from Component
Readonly
disabled:boolean
Whether this button is disabled
The emoji used in this button
Readonly
label:string | null
The label of this button
Readonly
The style of this button
Readonly
type:APIButtonComponent['type']
The type of the component
Inherited from Component
Readonly
url:string | null
The URL of this button (only defined on link buttons)
equals(other):boolean
Whether or not the given components are equal
NameTypeOptionalDescription
otherthis | APIButtonComponentNoThe component to compare against
Inherited from Component
Returns the API-compatible JSON for this component
Inherited from Component