Merge all perms into one for simplicity sake
This commit is contained in:
parent
a6252e262c
commit
f1f1936673
1 changed files with 1 additions and 5 deletions
|
@ -67,11 +67,7 @@ class LockCog(Scale):
|
||||||
if not channel:
|
if not channel:
|
||||||
channel = ctx.channel
|
channel = ctx.channel
|
||||||
|
|
||||||
# role = ctx.guild.default_role # Uncomment once implemented
|
to_deny = Permissions.CONNECT | Permissions.SPEAK | Permissions.SEND_MESSAGES
|
||||||
if isinstance(channel, GuildText):
|
|
||||||
to_deny = Permissions.SEND_MESSAGES
|
|
||||||
elif isinstance(channel, GuildVoice):
|
|
||||||
to_deny = Permissions.CONNECT | Permissions.SPEAK
|
|
||||||
|
|
||||||
current = get(channel.permission_overwrites, id=ctx.guild.id)
|
current = get(channel.permission_overwrites, id=ctx.guild.id)
|
||||||
if current:
|
if current:
|
||||||
|
|
Loading…
Add table
Reference in a new issue