Delete interview if channel is no longer a ticket
This commit is contained in:
parent
9641cdb0f1
commit
22dc2255bc
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue