class ButtonBuilder

declare class ButtonBuilder extends ComponentBuilder<APIButtonComponent>

Represents a button component

Constructors

constructor()

Constructs a new instance of the ButtonBuilder class

setCustomId(
customId: string
) : this

Sets the custom id for this button

setDisabled(
disabled?: boolean
) : this

Sets whether this button is disabled

setEmoji() : this

Sets the emoji to display on this button

setLabel(
label: string
) : this

Sets the label for this button

setStyle() : this

Sets the style of this button

setURL(
url: string
) : this

Sets the URL for this button

toJSON() : APIButtonComponent