From e5dcf03f95e71964f65fa3ce8e8b5bff410f99cf Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Wed, 16 Aug 2023 20:46:27 +0500 Subject: [PATCH] oi --- commands/Tickets/closeticket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/Tickets/closeticket.js b/commands/Tickets/closeticket.js index 3bf04b17..b815628f 100644 --- a/commands/Tickets/closeticket.js +++ b/commands/Tickets/closeticket.js @@ -112,7 +112,7 @@ class CloseTicket 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`); }