mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 23:44:29 +00:00
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)
|
||||
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…
x
Reference in New Issue
Block a user