DangerButtonBuilder

export declare class DangerButtonBuilder extends CustomIdButtonBuilder
export declare class DangerButtonBuilder extends CustomIdButtonBuilder
A builder that creates API-compatible JSON data for buttons with custom IDs (using the danger style).
constructor(data?)
Constructs a new instance of the DangerButtonBuilder 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