LinkButtonBuilder

export declare class LinkButtonBuilder extends LinkButtonBuilder_base
export declare class LinkButtonBuilder extends LinkButtonBuilder_base
A builder that creates API-compatible JSON data for buttons with links.

Extends

LinkButtonBuilder_base
constructor(data?)
Constructs a new instance of the LinkButtonBuilder class
NameTypeOptionalDescription
dataPartial<APIButtonComponent>YesNone
ProtectedReadonly
setURL(url):this
Sets the URL for this button.
Remarks
This method is only available to buttons using the Link button style. Only three types of URL schemes are currently supported: https://, http://, and discord://.
NameTypeOptionalDescription
urlstringNoThe URL to use