mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13:08 +02:00
fix: infinite feedback loop (closes #407)
This commit is contained in:
parent
6f36ef9204
commit
f1029b8320
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user