Browse Source

Channel.is_default_channel is now a property named is_default.

pull/60/head
Rapptz 9 years ago
parent
commit
f484a5c023
  1. 3
      discord/channel.py

3
discord/channel.py

@ -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

Loading…
Cancel
Save