diff --git a/Commands/ticket.js b/Commands/ticket.js index da4b170..b199d3b 100644 --- a/Commands/ticket.js +++ b/Commands/ticket.js @@ -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,