mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
Fix CodeBlock Splitting (#1160)
* Fix CodeBlock Splitting * fix changes requested
This commit is contained in:
committed by
Schuyler Cebulskie
parent
187f43aebd
commit
a2d6791cd8
@@ -68,6 +68,8 @@ class RESTMethods {
|
|||||||
if (typeof code !== 'undefined' && (typeof code !== 'boolean' || code === true)) {
|
if (typeof code !== 'undefined' && (typeof code !== 'boolean' || code === true)) {
|
||||||
content = escapeMarkdown(this.client.resolver.resolveString(content), true);
|
content = escapeMarkdown(this.client.resolver.resolveString(content), true);
|
||||||
content = `\`\`\`${typeof code !== 'boolean' ? code || '' : ''}\n${content}\n\`\`\``;
|
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
|
// Add zero-width spaces to @everyone/@here
|
||||||
|
|||||||
Reference in New Issue
Block a user