From 3269fbf7fb7e68d5c5b8dc4c5f2d1390938dac14 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Thu, 5 Nov 2020 20:37:54 +0100 Subject: [PATCH] Don't fetch deleted message, that's useless Signed-off-by: loicbersier --- event/listeners/log/messageDelete.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/event/listeners/log/messageDelete.js b/event/listeners/log/messageDelete.js index e8dc22e6..2bf2b4fc 100644 --- a/event/listeners/log/messageDelete.js +++ b/event/listeners/log/messageDelete.js @@ -10,13 +10,6 @@ class messageDeleteListener extends Listener { } async exec(message) { - if (message.partial) { - await message.fetch() - .catch(err => { - return console.error(err); - }); - } - if (!message.guild) return; if (!message.author) return;