mirror of
https://github.com/danbulant/discord.js
synced 2026-06-10 02:02:40 +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 = {};
|
if (split && typeof split !== 'object') split = {};
|
||||||
// Wrap everything in a code block
|
// Wrap everything in a code block
|
||||||
if (typeof code !== 'undefined' && (typeof code !== 'boolean' || code === true)) {
|
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\`\`\``;
|
content = `\`\`\`${typeof code !== 'boolean' ? code || '' : ''}\n${content}\n\`\`\``;
|
||||||
if (split) {
|
if (split) {
|
||||||
split.prepend = `\`\`\`${typeof code !== 'boolean' ? code || '' : ''}\n`;
|
split.prepend = `\`\`\`${typeof code !== 'boolean' ? code || '' : ''}\n`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue