Preview environment
export interface APIButtonComponentWithCustomId extends APIButtonComponentBase<ButtonStyle.Danger | ButtonStyle.Primary | ButtonStyle.Secondary | ButtonStyle.Success>

custom_id : string

The custom_id to be sent in the interaction when clicked

optional
disabled? : boolean

The status of the button

Inherited from: APIButtonComponentBase

optional
emoji? : APIMessageComponentEmoji

The emoji to display to the left of the text

Inherited from: APIButtonComponentBase

optional
label? : string

The label to be displayed on the button

Inherited from: APIButtonComponentBase

style : Style

The style of the button

Inherited from: APIButtonComponentBase

type : T

The type of the component

Inherited from: APIBaseComponent