Fix logging deleted messages
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
43a78f9939
commit
f4ea0b4605
1 changed files with 2 additions and 1 deletions
|
@ -20,8 +20,9 @@ class messageDeleteListener extends Listener {
|
||||||
if (!message.guild) return;
|
if (!message.guild) return;
|
||||||
|
|
||||||
if (!message.author) return;
|
if (!message.author) return;
|
||||||
|
|
||||||
if (message.author)
|
if (message.author)
|
||||||
if (!message.author.bot) return;
|
if (message.author.bot) return;
|
||||||
|
|
||||||
const logStats = await LogStats.findOne({where: {guild: message.guild.id}});
|
const logStats = await LogStats.findOne({where: {guild: message.guild.id}});
|
||||||
if (logStats) {
|
if (logStats) {
|
||||||
|
|
Loading…
Reference in a new issue