Fix users can't send messages

This commit is contained in:
Noah committed 2021-12-19 13:02:43 -06:00
1 parent 615a074540
commit 6c91b2791a
1 file changed
+5 -1
+5 -1
View File
@@ -121,7 +121,6 @@ module.exports = new Command({
{
id: Author.id,
allow: [Permissions.FLAGS.VIEW_CHANNEL],
deny: [Permissions.FLAGS.SEND_MESSAGES],
},
{
id: interaction.guild.id,
@@ -135,6 +134,11 @@ module.exports = new Command({
VIEW_CHANNEL: true,
});
}
if (supportbot.TicketDepartments) {
ticketChannel.permissionOverwrites.edit(interaction.user.id, {
SEND_MESSAGES: false,
});
}
await TicketData.tickets.push({
id: ticketChannel.id,
name: ticketChannel.name,