aboutsummaryrefslogtreecommitdiff
path: root/discord/abc.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-03 20:17:41 -0500
committerRapptz <[email protected]>2017-01-03 20:17:59 -0500
commitd086b5421dbba32e6117586218786b1a03548670 (patch)
treeddd87d520de1a55e2edd147017bf947c2df4bfd9 /discord/abc.py
parentFix bug that made member roles go missing. (diff)
downloaddiscord.py-d086b5421dbba32e6117586218786b1a03548670.tar.xz
discord.py-d086b5421dbba32e6117586218786b1a03548670.zip
Fix NameError when dealing with permission resolution.
Diffstat (limited to 'discord/abc.py')
-rw-r--r--discord/abc.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/discord/abc.py b/discord/abc.py
index 89229279..7814772a 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -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