/
docs
/
packages
/
formatters
/
main
/
codeBlock%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
heading
hideLinkEmbed
hyperlink
inlineCode
italic
messageLink
orderedList
quote
roleMention
spoiler
strikethrough
time
underscore
unorderedList
userMention
Enums
Faces
GuildNavigationMentions
HeadingLevel
Interfaces
EscapeMarkdownOptions
Types
RecursiveArray
TimestampStylesString
Variables
TimestampStyles
codeBlock
Overload 1
of 2
Overload 1
Overload 2
export declare function
codeBlock
<
C
extends
string
>(
content
:
C
)
:
`
\`\`\`\n
${
C
}
\n\`\`\`
`
;
export declare function
codeBlock
<
C
extends
string
>(content
:
C
)
:
`\`\`\`\n
${
C
}
\n\`\`\``
;
Summary
Wraps the content inside a code block with no language.
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 wrap