A builder that creates API-compatible JSON data for buttons with links.
Extends
LinkButtonBuilder_baseConstructs a new instance of the
LinkButtonBuilder
className | Type | Optional | Description |
---|---|---|---|
data | Partial<APIButtonComponent> | Yes | None |
ProtectedReadonly
Sets the URL for this button.
Remarks
This method is only available to buttons using theLink
button style. Only three types of URL schemes are currently supported: https://
, http://
, and discord://
.Name | Type | Optional | Description |
---|---|---|---|
url | string | No | The URL to use |