mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Fix NameError when dealing with permission resolution.
This commit is contained in:
1 parent
c863d93f69
commit
d086b5421d
2 files changed
+10
-5
No files matched your search
@@ -346,11 +346,6 @@ class GuildChannel:
|
||||
denied = Permissions.all_channel()
|
||||
base.value &= ~denied.value
|
||||
|
||||
# text channels do not have voice related permissions
|
||||
if isinstance(self, TextChannel):
|
||||
denied = Permissions.voice()
|
||||
base.value &= ~denied.value
|
||||
|
||||
return base
|
||||
|
||||
@asyncio.coroutine
|
||||
|
||||
Reference in new issue
Block a user