From 0657283cbced6a676497d23a8081fe4a85165d49 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 4 Apr 2021 22:41:45 -0500 Subject: [PATCH] Fix wrong sign in if statement --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index 90ab9a8..9541a7a 100644 --- a/bot.js +++ b/bot.js @@ -726,7 +726,7 @@ client.on('messageUpdate', (originalMessage, editedMessage) => { if (editedMessage !== originalMessage) { editEmbed.addField("Message", `\`\`\`diff\n+${originalMessage}\n+${editedMessage}\`\`\``) } - if (editedMessage.attachments.array().length < 1) { + if (editedMessage.attachments.array().length > 0) { editEmbed.addField("Attachments", editedMessage.attachments.array().map(a =>`[${a.name}](${a.url})`).join(' • ')) } collection.findOne({ guild_id: editedMessage.guild.id }, (error, result) => {