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