A builder that creates API-compatible JSON data for buttons with custom IDs (using the danger style).
Extends
CustomIdButtonBuilderConstructs a new instance of the
DangerButtonBuilder class| Name | Type | Optional | Description |
|---|---|---|---|
| data | Partial<APIButtonComponentWithCustomId> | Yes | None |
ProtectedReadonly
Inherited from CustomIdButtonBuilder
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 |