(buttons): Fix the close-ticket button responding with an error upon success.

This commit is contained in:
2026-10-14 09:34:09 +08:00
parent d157d1f6c2
commit 6023efe42d
+1 -1
View File
@@ -19,7 +19,7 @@ export default {
components: [] 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.' }); return await interaction.editReply({ content: 'An error occured while trying to close this ticket.' });
await interaction.editReply({ content: 'Ticket closed.' }); await interaction.editReply({ content: 'Ticket closed.' });