Fix users can't send messages
This commit is contained in:
1 parent
615a074540
commit
6c91b2791a
1 file changed
+5
-1
+5
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user