mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 06:31:20 +00:00
Fix CodeBlock Splitting (#1160)
* Fix CodeBlock Splitting * fix changes requested
This commit is contained in:
parent
187f43aebd
commit
a2d6791cd8
1 changed files with 2 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ class RESTMethods {
|
|||
if (typeof code !== 'undefined' && (typeof code !== 'boolean' || code === true)) {
|
||||
content = escapeMarkdown(this.client.resolver.resolveString(content), true);
|
||||
content = `\`\`\`${typeof code !== 'boolean' ? code || '' : ''}\n${content}\n\`\`\``;
|
||||
split.prepend = `\`\`\`${typeof code !== 'boolean' ? code || '' : ''}\n`;
|
||||
split.append = '\n```';
|
||||
}
|
||||
|
||||
// Add zero-width spaces to @everyone/@here
|
||||
|
|
|
|||
Loading…
Reference in a new issue