mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
maybe?
This commit is contained in:
parent
eb934a37c3
commit
e8a7d9670f
2 changed files with 4 additions and 2 deletions
|
@ -112,7 +112,8 @@ class CloseTicket extends BaseCommand {
|
|||
await interaction.reply({ content: interaction.translate("misc:CANT_DM"), ephemeral: true });
|
||||
}
|
||||
|
||||
await interaction.channel.permissionOverwrites.edit(interaction.member, { ViewChannel: false, SendMessages: null });
|
||||
const member = interaction.guild.members.cache.find(u => u.user.username === interaction.channel.name.split("-")[0]);
|
||||
await interaction.channel.permissionOverwrites.edit(member, { ViewChannel: false, SendMessages: null });
|
||||
await interaction.channel.setName(`${interaction.channel.name}-closed`);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -167,7 +167,8 @@ class CreateTicketEmbed extends BaseCommand {
|
|||
await interaction.reply({ content: interaction.translate("misc:CANT_DM"), ephemeral: true });
|
||||
}
|
||||
|
||||
await interaction.channel.permissionOverwrites.edit(interaction.member, { ViewChannel: false, SendMessages: null });
|
||||
const member = interaction.guild.members.cache.find(u => u.user.username === 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