From 6ba45bf96777878333b311c5ca513eb1f5ca1fa0 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 4 Apr 2021 22:36:00 -0500 Subject: [PATCH] Fix "a is not defined" error --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index fedb03a..5b02dea 100644 --- a/bot.js +++ b/bot.js @@ -727,7 +727,7 @@ client.on('messageUpdate', (originalMessage, editedMessage) => { editEmbed.addField("Message", `\`\`\`diff\n+${originalMessage}\n+${editedMessage}\`\`\``) } if (editedMessage.attachments) { - editEmbed.addField("Attachments", editedMessage.attachments.array().map(`[${a.name}](${a.url})`).join(' • ')) + editEmbed.addField("Attachments", editedMessage.attachments.array().map(a =>`[${a.name}](${a.url})`).join(' • ')) } collection.findOne({ guild_id: editedMessage.guild.id }, (error, result) => { if (error) {