This commit is contained in:
Dragon Fire
2021-02-12 17:50:22 -05:00
parent e5135a2427
commit 65528f19f3
+1 -1
View File
@@ -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());
}