all repos — stealth-developers @ 553bd532d77c550a7da393646e17464f413c2986

bot: set channelId of delete tickets to null
vi did:web:vt3e.cat
Sat, 27 Jun 2026 02:58:07 +0100
commit

553bd532d77c550a7da393646e17464f413c2986

parent

e9805c528700079e12e4811ce9df87a95dd3240e

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M apps/bot/src/feats/tickets/actions.tsapps/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"); }