formatters
F
blockQuote
F
bold
F
channelLink
F
channelMention
F
chatInputApplicationCommandMention
F
codeBlock
F
escapeBold
F
escapeBulletedList
F
escapeCodeBlock
F
escapeEscape
F
escapeHeading
F
escapeInlineCode
F
escapeItalic
F
escapeMarkdown
F
escapeMaskedLink
F
escapeNumberedList
F
escapeSpoiler
F
escapeStrikethrough
F
escapeUnderline
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
I
EscapeMarkdownOptions
T
TimestampStylesString
V
TimestampStyles
formatters
Overload 1
Overload 2
Overload 3
Overload 4

function hyperlink

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

Formats the content and the URL into a masked URL.

Type Parameters

C extends string

This is inferred by the supplied content

Parameters

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