Commit 3269fbf7 authored by Loïc Bersier's avatar Loïc Bersier 😎
Browse files

Don't fetch deleted message, that's useless


Signed-off-by: Loïc Bersier's avatarloicbersier <loic.bersier1@gmail.com>
parent 1eb2180c
...@@ -10,13 +10,6 @@ class messageDeleteListener extends Listener { ...@@ -10,13 +10,6 @@ class messageDeleteListener extends Listener {
} }
async exec(message) { async exec(message) {
if (message.partial) {
await message.fetch()
.catch(err => {
return console.error(err);
});
}
if (!message.guild) return; if (!message.guild) return;
if (!message.author) return; if (!message.author) return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment