From 457ede3ac75ebf0b02b788fdd2a5fa7a3bae1bda Mon Sep 17 00:00:00 2001 From: Isaac Date: Mon, 30 Jan 2023 20:50:38 +0000 Subject: [PATCH] fix: don't allow removing the creator --- src/commands/slash/remove.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/slash/remove.js b/src/commands/slash/remove.js index 51ca9bf..a78ab0c 100644 --- a/src/commands/slash/remove.js +++ b/src/commands/slash/remove.js @@ -89,7 +89,7 @@ module.exports = class RemoveSlashCommand extends SlashCommand { const ticketChannel = await interaction.guild.channels.fetch(ticket.id); const member = interaction.options.getMember('member', true); - if (member.id === client.user.id) { + if (member.id === client.user.id || member.id === ticket.createdById) { return await interaction.editReply({ embeds: [ new ExtendedEmbedBuilder()