formatters
Overload 1
Overload 2
Overload 3
Overload 4

function hyperlink

export declare function hyperlink<Content extends string>(content: Content, url: URL): `[${Content}](${string})`;

Formats the content and the URL into a masked URL.

Type Parameters

Content extends string

This is inferred by the supplied content

Parameters

content: Content
The content to display
url: URL
The URL the content links to
VercelCloudflare
Community
DiscordGitHub discussions
Project
discord.jsdiscord.js documentationdiscord-api-types