class CustomIdButtonBuilder

extends

CustomIdButtonBuilder_base
abstract
export declare abstract class CustomIdButtonBuilder extends CustomIdButtonBuilder_base

A builder that creates API-compatible JSON data for buttons with custom IDs.

Constructors

Constructs a new instance of the CustomIdButtonBuilder class

protectedreadonly
data : Partial<APIButtonComponentWithCustomId>

setCustomId(
customId: string
) : this

Sets the custom id for this button.