From f1029b8320762e483e253f97ae00dce83d60d687 Mon Sep 17 00:00:00 2001 From: Isaac Date: Mon, 29 May 2023 18:47:30 +0100 Subject: [PATCH] fix: infinite feedback loop (closes #407) --- src/buttons/close.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buttons/close.js b/src/buttons/close.js index 292ae43..53ef089 100644 --- a/src/buttons/close.js +++ b/src/buttons/close.js @@ -22,7 +22,7 @@ module.exports = class CloseButton extends Button { // the close button on the opening message, the same as using /close await client.tickets.beforeRequestClose(interaction); } else { - const ticket = await client.tickets.getTicket(interaction.channel.id); + const ticket = await client.tickets.getTicket(interaction.channel.id, true); // true to override cache and load new feedback const getMessage = client.i18n.getLocale(ticket.guild.locale); const staff = await isStaff(interaction.guild, interaction.user.id); @@ -78,4 +78,4 @@ module.exports = class CloseButton extends Button { } } } -}; \ No newline at end of file +};