From b21c3ea86b8db6a3d6c7c1412da529583271bd31 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 2 Jun 2020 23:00:19 +0200 Subject: [PATCH] Fix message update logging Signed-off-by: loicbersier --- event/listeners/log/messageUpdate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event/listeners/log/messageUpdate.js b/event/listeners/log/messageUpdate.js index 031516ee..3f8fc43c 100644 --- a/event/listeners/log/messageUpdate.js +++ b/event/listeners/log/messageUpdate.js @@ -11,7 +11,7 @@ class messageUpdateListener extends Listener { async exec(oldMessage, newMessage) { const logStats = await LogStats.findOne({where: {guild: newMessage.guild.id}}); - if (logStats && oldMessage.content !== newMessage.content && !message.author.bot) { + if (logStats && oldMessage.content !== newMessage.content && !oldMessage.author.bot) { const channel = this.client.channels.resolve(await logStats.get('channel')); let Embed = this.client.util.embed() .setColor('NAVY') @@ -26,4 +26,4 @@ class messageUpdateListener extends Listener { } } } -module.exports = messageUpdateListener; \ No newline at end of file +module.exports = messageUpdateListener;