fix: don't allow removing the creator

This commit is contained in:
Isaac 2023-01-30 20:50:38 +00:00
parent bb3179f28f
commit 457ede3ac7
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -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()