From 22dc2255bc1213e28b4258a4058363a35c44ea1b Mon Sep 17 00:00:00 2001 From: Toastie Date: Fri, 27 Dec 2024 16:22:30 +1300 Subject: [PATCH] Delete interview if channel is no longer a ticket --- Commands/AdminCommands.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Commands/AdminCommands.cs b/Commands/AdminCommands.cs index e32815b..5c4de02 100644 --- a/Commands/AdminCommands.cs +++ b/Commands/AdminCommands.cs @@ -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)) {