Abstract
A builder that creates API-compatible JSON data for buttons with custom IDs.
Extends
CustomIdButtonBuilder_baseConstructs a new instance of the
CustomIdButtonBuilder class| Name | Type | Optional | Description |
|---|---|---|---|
| data | Partial<APIButtonComponentWithCustomId> | Yes | None |
ProtectedReadonly
Sets the custom id for this button.
Remarks
This method is only applicable to buttons that are not using theLink button style.| Name | Type | Optional | Description |
|---|---|---|---|
| customId | string | No | The custom id to use |