aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-16 19:54:26 -0500
committerRapptz <[email protected]>2015-12-16 19:54:26 -0500
commitf484a5c02341a1cf9ff54aeabd6429c83fd4015b (patch)
treef25510df3cb42afde21b6b5c47727f7c9218b9b0
parentMake Client.unban actually useful. (diff)
downloaddiscord.py-f484a5c02341a1cf9ff54aeabd6429c83fd4015b.tar.xz
discord.py-f484a5c02341a1cf9ff54aeabd6429c83fd4015b.zip
Channel.is_default_channel is now a property named is_default.
-rw-r--r--discord/channel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/channel.py b/discord/channel.py
index 41445a12..983b4fb9 100644
--- a/discord/channel.py
+++ b/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