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:
|
||||
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:
|
||||
|
|
Loading…
Add table
Reference in a new issue