mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-24 22:24:58 +05:00
🤷
This commit is contained in:
parent
0c8ad6ce27
commit
d61d8e28df
1 changed files with 1 additions and 1 deletions
|
@ -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`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue