Changed functions that return a constant value into properties.

This commit is contained in:
Rapptz
2015-12-13 20:05:58 -05:00
parent c52e552888
commit ab46afee1d
3 changed files with 4 additions and 0 deletions

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)