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
heading
F
hideLinkEmbed
F
hyperlink
F
inlineCode
F
italic
F
messageLink
F
orderedList
F
quote
F
roleMention
F
spoiler
F
strikethrough
F
time
F
underline
F
underscore
F
unorderedList
F
userMention
E
Faces
E
GuildNavigationMentions
E
HeadingLevel
I
EscapeMarkdownOptions
I
FormatEmojiOptions
T
RecursiveArray
T
TimestampStylesString
V
TimestampStyles
V
version
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