all repos — stealth-developers @ 9859a78916c7f30b039900f753484cf4e60b69ae

feat(tickets): remove artificial wait
vi v@vt3e.cat
Sun, 01 Mar 2026 16:39:54 +0000
commit

9859a78916c7f30b039900f753484cf4e60b69ae

parent

2946427512ce9ca2c95f135bdc6dfc055bcdb0bc

1 files changed, 11 insertions(+), 2 deletions(-)

jump to
M src/interactions/commands/tickets/actions.tssrc/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(