From d8c0b045624804bbb4a0a71000f792491218b3ed Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 3 Apr 2021 10:21:31 -0500 Subject: [PATCH] Use editedMessage instead of message for messageUpdate() --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8a4645b..3f897aa 100644 --- a/index.js +++ b/index.js @@ -554,7 +554,7 @@ client.on('messageUpdate', (originalMessage, editedMessage) => { .setFooter("ID: " + editedMessage.id) .setTimestamp() .setColor('c9ff00'); - collection.findOne({ guild_id: message.guild.id }, (error, result) => { + collection.findOne({ guild_id: editedMessage.guild.id }, (error, result) => { if (error) { console.error; }