From 65528f19f3ddd6c17bedf58da56b3e89a046c7e3 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 12 Feb 2021 17:50:22 -0500 Subject: [PATCH] Fix --- structures/phone/PhoneCall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/phone/PhoneCall.js b/structures/phone/PhoneCall.js index f80c5788..fdb52446 100644 --- a/structures/phone/PhoneCall.js +++ b/structures/phone/PhoneCall.js @@ -136,7 +136,7 @@ module.exports = class PhoneCall { const attachments = hasImage ? msg.attachments.map(a => this.cleanContent(a.url)).join('\n') : null; if (!hasText && hasImage) return channel.send(`☎️ **${msg.author.tag}:**\n${attachments}`); if (!hasText && hasEmbed) return channel.send(`☎️ **${msg.author.tag}** sent an embed.`); - const content = content.length > 1000 ? `${shorten(content, 500)} (Message too long)` : content; + const content = msg.content.length > 1000 ? `${shorten(msg.content, 500)} (Message too long)` : msg.content; return channel.send(`☎️ **${msg.author.tag}:** ${this.cleanContent(content)}\n${attachments || ''}`.trim()); }