From d1267360c84dc40d39b5311900987ecaf4ec7148 Mon Sep 17 00:00:00 2001 From: Isaac Date: Wed, 24 May 2023 22:20:29 +0100 Subject: [PATCH] fix: closing ticket with missing creator (closes #401) --- src/lib/tickets/manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tickets/manager.js b/src/lib/tickets/manager.js index 9e0167e..7cec820 100644 --- a/src/lib/tickets/manager.js +++ b/src/lib/tickets/manager.js @@ -1217,7 +1217,7 @@ module.exports = class TicketManager { } try { - const creator = await channel?.guild.members.fetch(ticket.createdById); + const creator = channel?.guild.members.cache.has(ticket.createdById); if (creator) { const embed = new ExtendedEmbedBuilder({ iconURL: channel.guild.iconURL(),