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
/
escapeHeading%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
escapeHeading
export declare function
escapeHeading
(
text
:
string
)
:
string
;
export declare function
escapeHeading
(text
:
string
)
:
string
;
Summary
Escapes heading characters in a string.
Parameters
Name
Type
Optional
Description
text
string
No
Content to escape