Don't fetch deleted message, that's useless

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
loicbersier 2020-11-05 20:37:54 +01:00
parent 1eb2180ce7
commit 3269fbf7fb

View file

@ -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;