From 0fa45e3e50d0ec4d3caf20f09307d0a97e922dd1 Mon Sep 17 00:00:00 2001 From: Isaac Date: Mon, 2 Jan 2023 13:27:20 +0000 Subject: [PATCH] fix: don't fetch partial messages on delete --- src/listeners/client/messageDelete.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/listeners/client/messageDelete.js b/src/listeners/client/messageDelete.js index 1d307a6..96f779e 100644 --- a/src/listeners/client/messageDelete.js +++ b/src/listeners/client/messageDelete.js @@ -10,15 +10,10 @@ module.exports = class extends Listener { }); } - /** - * @param {import("discord.js").Message} oldMessage - * @param {import("discord.js").Message} message - */ async run(message) { /** @type {import("client")} */ const client = this.client; - if (message.partial) message.fetch().then(m => (message = m)).catch(client.log.error); const ticket = await client.prisma.ticket.findUnique({ include: { guild: true }, where: { id: message.channel.id },