Merge all perms into one for simplicity sake

This commit is contained in:
Zeva Rose 2022-03-25 12:47:35 -06:00
parent a6252e262c
commit f1f1936673

View file

@ -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: