From 788dc27c3d95a7204d69aefaf7c7dae6e8e30921 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 1 May 2020 22:49:16 +0200 Subject: [PATCH] Check for message content Signed-off-by: loicbersier --- event/listeners/log/messageUpdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event/listeners/log/messageUpdate.js b/event/listeners/log/messageUpdate.js index dbd8ae6..8ccbc74 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) { + if (logStats && oldMessage.content !== newMessage.content) { const channel = this.client.channels.resolve(await logStats.get('channel')); let Embed = this.client.util.embed() .setColor('NAVY')