diff --git a/src/commands/admin/create-ticket-system.ts b/src/commands/admin/create-ticket-system.ts index c413cc2..97081ba 100644 --- a/src/commands/admin/create-ticket-system.ts +++ b/src/commands/admin/create-ticket-system.ts @@ -89,7 +89,7 @@ export class CreateTicketSystem { .then(() => logger.database(DBTableEnum.TICKET_ROLE, role.id)) // create ticket embed + button - await interaction.channel?.send({ + await interaction.channel.send({ components: [ticketCreateButton()], embeds: [ticketCreateEmbed({ bannerURL, pricesChannelId })], }) @@ -185,6 +185,8 @@ export class CreateTicketSystem { await interaction.editReply('❌ Ticket channel does not exist') return } - await interaction.channel.delete() + if (interaction.channel.isThread()) { + await interaction.channel.setArchived(true, `Archived by ${userMention(interaction.user.id)}(${interaction.user.id})`) + } } }