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)
Readonly
data:Readonly<T>
The API data associated with this component
Inherited from Component
Readonly
disabled:boolean
Whether this button is disabled
Readonly
The emoji used in this button
Readonly
label:string | null
The label of this button
Readonly
The style of this button
Readonly
type:T['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 | TNoThe component to compare against
Inherited from Component
toJSON():T
Returns the API-compatible JSON for this component
Inherited from Component