SuccessButtonBuilder

export declare class SuccessButtonBuilder extends CustomIdButtonBuilder
export declare class SuccessButtonBuilder extends CustomIdButtonBuilder
A builder that creates API-compatible JSON data for buttons with custom IDs (using the success style).
constructor(data?)
Constructs a new instance of the SuccessButtonBuilder class
NameTypeOptionalDescription
dataPartial<APIButtonComponentWithCustomId>YesNone
Inherited from CustomIdButtonBuilder
setCustomId(customId):this
Sets the custom id for this button.
Remarks
This method is only applicable to buttons that are not using the Link button style.
NameTypeOptionalDescription
customIdstringNoThe custom id to use
Inherited from CustomIdButtonBuilder