mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-11-11 07:13:37 -05:00
(buttons): Fix the close-ticket button responding with an error upon success.
This commit is contained in:
@@ -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.' });
|
||||
|
||||
Reference in New Issue
Block a user