class PrimaryButtonBuilder

external
declare class PrimaryButtonBuilder extends CustomIdButtonBuilder

A builder that creates API-compatible JSON data for buttons with custom IDs (using the primary style).

Constructors

external
constructor()

Constructs a new instance of the PrimaryButtonBuilder class

protectedreadonlyexternal
data : Partial<APIButtonComponentWithCustomId>

Inherited from: CustomIdButtonBuilder

external
setCustomId(
customId: string
) : this

Sets the custom id for this button.

Inherited from: CustomIdButtonBuilder