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;