Skip to content

Commit

Permalink
fix: don't allow removing the creator
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Jan 30, 2023
1 parent bb3179f commit 457ede3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/slash/remove.js
Expand Up @@ -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()
Expand Down

0 comments on commit 457ede3

Please sign in to comment.