Don't fetch deleted message, that's useless
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
1eb2180ce7
commit
3269fbf7fb
1 changed files with 0 additions and 7 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue