mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
fix sending code when you aren't splitting the message (#1162)
* fasguhq4wbyghjehuibh kjgewqhuilb * Update RESTMethods.js
This commit is contained in:
parent
1e94a9e2a4
commit
cee9e4839c
1 changed files with 4 additions and 2 deletions
|
|
@ -68,8 +68,10 @@ 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```';
|
||||
if (split) {
|
||||
split.prepend = `\`\`\`${typeof code !== 'boolean' ? code || '' : ''}\n`;
|
||||
split.append = '\n```';
|
||||
}
|
||||
}
|
||||
|
||||
// Add zero-width spaces to @everyone/@here
|
||||
|
|
|
|||
Loading…
Reference in a new issue