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; }