1
1
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:
Théo LUDWIG 2024-06-09 18:47:10 +02:00
parent 5f8fe7bef1
commit 8fd1891b20
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B

View File

@ -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({