Fix logging deleted messages

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
loicbersier 2020-09-07 18:19:20 +02:00
parent 43a78f9939
commit f4ea0b4605

View file

@ -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) {