Delete interview if channel is no longer a ticket

This commit is contained in:
Toastie 2024-12-27 16:22:30 +13:00
parent 9641cdb0f1
commit 22dc2255bc
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4

View file

@ -5,6 +5,7 @@ using DSharpPlus.Commands.ContextChecks;
using DSharpPlus.Commands.Processors.SlashCommands;
using DSharpPlus.Entities;
using DSharpPlus.Exceptions;
using SupportChild.Interviews;
namespace SupportChild.Commands;
@ -93,7 +94,7 @@ public class AdminCommands
}
}
// TODO: Delete interview
Database.TryDeleteInterview(ticket.channelID);
if (Database.DeleteOpenTicket(ticket.id))
{