From 6023efe42d9f6bb148551f9043a224616b82c5c6 Mon Sep 17 00:00:00 2001 From: Nix Krystik Date: Wed, 14 Oct 2026 09:34:09 +0800 Subject: [PATCH] (buttons): Fix the close-ticket button responding with an error upon success. --- src/buttons/close-ticket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buttons/close-ticket.ts b/src/buttons/close-ticket.ts index 69f7ca3..4401aab 100644 --- a/src/buttons/close-ticket.ts +++ b/src/buttons/close-ticket.ts @@ -19,7 +19,7 @@ export default { components: [] }); - if (await closeTicket(client, channel, `This ticket has been closed by ${interaction.user}`)) + if (!await closeTicket(client, channel, `This ticket has been closed by ${interaction.user}`)) return await interaction.editReply({ content: 'An error occured while trying to close this ticket.' }); await interaction.editReply({ content: 'Ticket closed.' });