mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
Remove duplicate resolveString call
This commit is contained in:
parent
75eb0bae58
commit
05a9f7e72f
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ module.exports = function sendMessage(channel, options) {
|
|||
if (split && typeof split !== 'object') split = {};
|
||||
// Wrap everything in a code block
|
||||
if (typeof code !== 'undefined' && (typeof code !== 'boolean' || code === true)) {
|
||||
content = Util.escapeMarkdown(channel.client.resolver.resolveString(content), true);
|
||||
content = Util.escapeMarkdown(content, true);
|
||||
content = `\`\`\`${typeof code !== 'boolean' ? code || '' : ''}\n${content}\n\`\`\``;
|
||||
if (split) {
|
||||
split.prepend = `\`\`\`${typeof code !== 'boolean' ? code || '' : ''}\n`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue