From f1f19366738ccba582d6490a61f2a0cde965e37e Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Fri, 25 Mar 2022 12:47:35 -0600 Subject: [PATCH] Merge all perms into one for simplicity sake --- jarvis/cogs/admin/lock.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/jarvis/cogs/admin/lock.py b/jarvis/cogs/admin/lock.py index e1aeb61..7c8f4a2 100644 --- a/jarvis/cogs/admin/lock.py +++ b/jarvis/cogs/admin/lock.py @@ -67,11 +67,7 @@ class LockCog(Scale): if not channel: channel = ctx.channel - # role = ctx.guild.default_role # Uncomment once implemented - if isinstance(channel, GuildText): - to_deny = Permissions.SEND_MESSAGES - elif isinstance(channel, GuildVoice): - to_deny = Permissions.CONNECT | Permissions.SPEAK + to_deny = Permissions.CONNECT | Permissions.SPEAK | Permissions.SEND_MESSAGES current = get(channel.permission_overwrites, id=ctx.guild.id) if current: