From f4ea0b4605ac40deca1de7ee3aad9a25f4bc1645 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 7 Sep 2020 18:19:20 +0200 Subject: [PATCH] Fix logging deleted messages Signed-off-by: loicbersier --- event/listeners/log/messageDelete.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/event/listeners/log/messageDelete.js b/event/listeners/log/messageDelete.js index 959e6973..e8dc22e6 100644 --- a/event/listeners/log/messageDelete.js +++ b/event/listeners/log/messageDelete.js @@ -20,8 +20,9 @@ class messageDeleteListener extends Listener { if (!message.guild) return; if (!message.author) return; + if (message.author) - if (!message.author.bot) return; + if (message.author.bot) return; const logStats = await LogStats.findOne({where: {guild: message.guild.id}}); if (logStats) {