Skip to content
Snippets Groups Projects
Commit bd029fd6 authored by Patric Plattner's avatar Patric Plattner
Browse files

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

parent f079a697
No related branches found
No related tags found
No related merge requests found
......@@ -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, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment