Channel.is_default_channel is now a property named is_default.
This commit is contained in:
parent
271c7565fc
commit
f484a5c023
@ -111,7 +111,8 @@ class Channel(EqualityComparable):
|
|||||||
override.permissions.handle_overwrite(allowed, denied)
|
override.permissions.handle_overwrite(allowed, denied)
|
||||||
self.changed_roles.append(override)
|
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."""
|
"""bool : Indicates if this is the default channel for the :class:`Server` it belongs to."""
|
||||||
return self.server.id == self.id
|
return self.server.id == self.id
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user