bot: set channelId of delete tickets to null
vi did:web:vt3e.cat
Sat, 27 Jun 2026 02:58:07 +0100
1 files changed,
4 insertions(+),
0 deletions(-)
M
apps/bot/src/feats/tickets/actions.ts
→
apps/bot/src/feats/tickets/actions.ts
@@ -549,6 +549,10 @@ const canAccess = hasAccessToTicket(actor, guild, ticket, { requireModerator: true });
if (!canAccess) throw new PublicError("You don't have permission to clean up this ticket."); if (!ticketChannel) throw new PublicError("Ticket channel not found."); + await editTicket(ticket.id, { + channelId: null, + }); + return await ticketChannel.delete("Ticket channel cleaned up"); }