Fix channel perm issues on lock and unlock

This commit is contained in:
Ave Ozkal 2019-02-03 23:49:36 +03:00
parent b1cb4dba8f
commit b29dab5e9c
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -33,8 +33,7 @@ class Lockdown:
roles = [config.named_roles["community"],
config.named_roles["hacker"]]
else:
roles = [config.named_roles["participant"],
ctx.guild.default_role.id]
roles = [config.named_roles["participant"]]
for role in roles:
await channel.set_permissions(channel.guild.get_role(role),
@ -68,8 +67,7 @@ class Lockdown:
roles = [config.named_roles["community"],
config.named_roles["hacker"]]
else:
roles = [config.named_roles["participant"],
ctx.guild.default_role.id]
roles = [config.named_roles["participant"]]
await self.unlock_for_staff(channel, ctx.author)