From b29dab5e9c6b32ad2cba5183c14300880fa1e1db Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Sun, 3 Feb 2019 23:49:36 +0300 Subject: [PATCH] Fix channel perm issues on lock and unlock --- cogs/lockdown.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cogs/lockdown.py b/cogs/lockdown.py index 1ed663d..8bade64 100644 --- a/cogs/lockdown.py +++ b/cogs/lockdown.py @@ -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)