ticket now archive instead of deleting
This commit is contained in:
parent
a3841cf6c3
commit
7a4cafc3dd
@ -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})`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user