Make all public is_ functions into methods instead of properties.

This commit is contained in:
Rapptz
2017-01-29 20:51:47 -05:00
parent 01c17704bc
commit e77012f4d9
6 changed files with 11 additions and 16 deletions

View File

@ -185,7 +185,6 @@ class GuildChannel:
ret.append(role)
return ret
@property
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
@ -330,7 +329,7 @@ class GuildChannel:
break
# default channels can always be read
if self.is_default:
if self.is_default():
base.read_messages = True
# if you can't send a message in a channel then you can't have certain