Changed functions that return a constant value into properties.

This commit is contained in:
Rapptz committed 2015-12-13 20:05:58 -05:00
1 parent c52e552888
commit ab46afee1d
3 files changed
+4

No files matched your search

+1
View File
@@ -99,6 +99,7 @@ class Channel:
"""bool : Indicates if this is the default channel for the :class:`Server` it belongs to."""
return self.server.id == self.id
@property
def mention(self):
"""str : The string that allows you to mention the channel."""
return '<#{0.id}>'.format(self)