You are reading the documentation for the
next
version of discord.js. Documentation for v13/v14+ has been moved to
old.discordjs.dev
/
docs
/
packages
/
formatters
/
main
/
hyperlink%3AFunction
Search...
K
formatters
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
main
main
Functions
blockQuote
bold
channelLink
channelMention
chatInputApplicationCommandMention
codeBlock
escapeBold
escapeBulletedList
escapeCodeBlock
escapeEscape
escapeHeading
escapeInlineCode
escapeItalic
escapeMarkdown
escapeMaskedLink
escapeNumberedList
escapeSpoiler
escapeStrikethrough
escapeUnderline
formatEmoji
hideLinkEmbed
hyperlink
inlineCode
italic
messageLink
quote
roleMention
spoiler
strikethrough
time
underscore
userMention
Enums
Faces
Interfaces
EscapeMarkdownOptions
Types
TimestampStylesString
Variables
TimestampStyles
hyperlink
Overload 1
of 4
Overload 1
Overload 2
Overload 3
Overload 4
export declare function
hyperlink
<
C
extends
string
>(
content
:
C
,
url
:
URL_2
)
:
`[${
C
}](${
string
})`
;
export declare function
hyperlink
<
C
extends
string
>(content
:
C
,
url
:
URL_2
)
:
`[
${
C
}
](
${
string
}
)`
;
Summary
Formats the content and the URL into a masked URL.
Type Parameters
Name
Constraints
Optional
Default
Description
C
string
No
This is inferred by the supplied content
Parameters
Name
Type
Optional
Description
content
C
No
The content to display
url
URL_2
No
The URL the content links to