mirror of
https://github.com/ARK-Unity/ark-unity.git
synced 2024-07-06 20:50:11 +02:00
fix: deny view/send messages in channel in support ticket that doesn't inherit category permissions
This commit is contained in:
parent
5f8fe7bef1
commit
8fd1891b20
|
@ -79,6 +79,11 @@ export const handleSupportTicketsModalSubmit: HandleInteractionCreateSupportTick
|
|||
permissionOverwrites.push(
|
||||
...channelCategory.permissionOverwrites.valueOf().toJSON(),
|
||||
)
|
||||
} else {
|
||||
permissionOverwrites.push({
|
||||
deny: ["ViewChannel", "SendMessages"],
|
||||
id: interaction.guild.roles.everyone.id,
|
||||
})
|
||||
}
|
||||
|
||||
const channel = await interaction.guild.channels.create({
|
||||
|
|
Loading…
Reference in New Issue
Block a user