Abstract

CustomIdButtonBuilder

export declare abstract class CustomIdButtonBuilder extends CustomIdButtonBuilder_base
export declare abstract class CustomIdButtonBuilder extends CustomIdButtonBuilder_base
A builder that creates API-compatible JSON data for buttons with custom IDs.

Extends

CustomIdButtonBuilder_base
constructor(data?)
Constructs a new instance of the CustomIdButtonBuilder class
NameTypeOptionalDescription
dataPartial<APIButtonComponentWithCustomId>YesNone
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