Preview environment

interface APIButtonComponentBase

export interface APIButtonComponentBase<Style extends ButtonStyle> extends APIBaseComponent<ComponentType.Button>

https://discord.com/developers/docs/interactions/message-components#buttons

Type Parameters

Style extends ButtonStyle

optional
disabled? : boolean

The status of the button

optional
emoji? : APIMessageComponentEmoji

The emoji to display to the left of the text

optional
label? : string

The label to be displayed on the button

style : Style

The style of the button

type : T

The type of the component

Inherited from: APIBaseComponent