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
/
escapeSpoiler%3AFunction
Search...
K
formatters
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
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
escapeSpoiler
export declare function
escapeSpoiler
(
text
:
string
)
:
string
;
export declare function
escapeSpoiler
(text
:
string
)
:
string
;
Summary
Escapes spoiler markdown in a string.
Parameters
Name
Type
Optional
Description
text
string
No
Content to escape