diff --git a/event/listeners/log/messageDelete.js b/event/listeners/log/messageDelete.js index 959e697..e8dc22e 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) {