Channel.is_default_channel is now a property named is_default.

This commit is contained in:
Rapptz 2015-12-16 19:54:26 -05:00
parent 271c7565fc
commit f484a5c023

View File

@ -111,7 +111,8 @@ class Channel(EqualityComparable):
override.permissions.handle_overwrite(allowed, denied)
self.changed_roles.append(override)
def is_default_channel(self):
@property
def is_default(self):
"""bool : Indicates if this is the default channel for the :class:`Server` it belongs to."""
return self.server.id == self.id