aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorSinisterRectus <[email protected]>2017-08-07 10:08:13 -0400
committerRapptz <[email protected]>2017-08-08 17:31:09 -0400
commit8acf3d01ce0bc6e049018e9b2955b414f49923d9 (patch)
tree3501725f4ada1255349c65d45fc7f78a50d419d5 /discord
parentAdd documentation examples for AsyncIterator and change_presence. (diff)
downloaddiscord.py-8acf3d01ce0bc6e049018e9b2955b414f49923d9.tar.xz
discord.py-8acf3d01ce0bc6e049018e9b2955b414f49923d9.zip
Remove GuildChannel.is_default
Diffstat (limited to 'discord')
-rw-r--r--discord/abc.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/discord/abc.py b/discord/abc.py
index 8d479b94..143ca174 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -254,10 +254,6 @@ class GuildChannel:
ret.append(role)
return ret
- def is_default(self):
- """bool : Indicates if this is the default channel for the :class:`Guild` it belongs to."""
- return self.guild.id == self.id
-
@property
def mention(self):
"""str : The string that allows you to mention the channel."""
@@ -356,9 +352,7 @@ class GuildChannel:
# have to take into effect.
# After all that is done.. you have to do the following:
- # If manage permissions is True, then all permissions are set to
- # True. If the channel is the default channel then everyone gets
- # read permissions regardless.
+ # If manage permissions is True, then all permissions are set to True.
# The operation first takes into consideration the denied
# and then the allowed.
@@ -408,10 +402,6 @@ class GuildChannel:
base.handle_overwrite(allow=overwrite.allow, deny=overwrite.deny)
break
- # default channels can always be read
- if self.is_default():
- base.read_messages = True
-
# if you can't send a message in a channel then you can't have certain
# permissions as well
if not base.send_messages: