class CustomIdButtonBuilder

extends

CustomIdButtonBuilder_base
abstractexternal
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

protectedreadonlyexternal
data : Partial<APIButtonComponentWithCustomId>

external
setCustomId(
customId: string
) : this

Sets the custom id for this button.