formatters
F
blockQuote
F
bold
F
channelLink
F
channelMention
F
chatInputApplicationCommandMention
F
codeBlock
F
formatEmoji
F
hideLinkEmbed
F
hyperlink
F
inlineCode
F
italic
F
messageLink
F
quote
F
roleMention
F
spoiler
F
strikethrough
F
time
F
underscore
F
userMention
E
Faces
T
TimestampStylesString
V
TimestampStyles
formatters
Overload 1
Overload 2
Overload 3
Overload 4

function hyperlink

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

Formats the content and the URL into a masked URL

Type Parameters

C extends string

Parameters

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