feat(tickets): remove artificial wait
vi v@vt3e.cat
Sun, 01 Mar 2026 16:39:54 +0000
1 files changed,
11 insertions(+),
2 deletions(-)
M
src/interactions/commands/tickets/actions.ts
→
src/interactions/commands/tickets/actions.ts
@@ -336,12 +336,21 @@ .update(tickets)
.set({ status: "archived" }) .where(eq(tickets.id, ticket.id)); - await interaction.editReply("⚠️ Deleting ticket channel in 5 seconds..."); + await interaction.editReply( + "✅ Ticket deleted. Channel will be deleted shortly.", + ); const channel = interaction.channel; if (channel && "delete" in channel) { - setTimeout(() => channel.delete(), 5000); + channel.delete(); + return; } + logger.error( + `Channel with ID ${interaction.channelId} not found or cannot be deleted for ticket ${ticket.id}`, + ); + interaction.editReply( + "Ticket was marked as deleted but couldn't delete the channel.", + ); } export async function handleTranscript(