From d61d8e28dfb6837ff579df901cb2425f988d1492 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Wed, 16 Aug 2023 20:46:00 +0500 Subject: [PATCH] :shrug: --- commands/Tickets/createticketembed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/Tickets/createticketembed.js b/commands/Tickets/createticketembed.js index 79aa9687..feed0471 100644 --- a/commands/Tickets/createticketembed.js +++ b/commands/Tickets/createticketembed.js @@ -167,7 +167,7 @@ class CreateTicketEmbed extends BaseCommand { await interaction.reply({ content: interaction.translate("misc:CANT_DM"), ephemeral: true }); } - const member = interaction.guild.members.cache.find(u => u.user.username === interaction.channel.name.split("-")[0]); + const member = interaction.guild.members.cache.find(u => u.user.username.includes(interaction.channel.name.split("-")[0])); await interaction.channel.permissionOverwrites.edit(member, { ViewChannel: false, SendMessages: null }); await interaction.channel.setName(`${interaction.channel.name}-closed`); }