Commit bd029fd6 authored by Yashin's avatar Yashin
Browse files

Revoking permissions from @everyone to write in the collection role channel.

parent f079a697
......@@ -42,7 +42,8 @@ async function newCollection(config, guild, name, menuChannelName) {
collection.courses = [];
await category.permissionOverwrites.create(guild.roles.everyone, {
"VIEW_CHANNEL": false,
"CONNECT": false
"CONNECT": false,
"SEND_MESSAGES": false
})
await Promise.all(config.memberRoles.map(async (roleID) => {
await category.permissionOverwrites.create(roleID, {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment