class SuccessButtonBuilder

export declare class SuccessButtonBuilder extends CustomIdButtonBuilder

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

Constructors

Constructs a new instance of the SuccessButtonBuilder class

protectedreadonly
data : Partial<APIButtonComponentWithCustomId>

Inherited from: CustomIdButtonBuilder

setCustomId(
customId: string
) : this

Sets the custom id for this button.

Inherited from: CustomIdButtonBuilder