aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-13 20:05:58 -0500
committerRapptz <[email protected]>2015-12-13 20:05:58 -0500
commitab46afee1db869046375f3e1c26b0cdb4dfdb3b7 (patch)
treef29aa1bef8f2c409d6bc53c46e9b91032bb339ad /discord/channel.py
parentEditing profile now writes to the cache. (diff)
downloaddiscord.py-ab46afee1db869046375f3e1c26b0cdb4dfdb3b7.tar.xz
discord.py-ab46afee1db869046375f3e1c26b0cdb4dfdb3b7.zip
Changed functions that return a constant value into properties.
Diffstat (limited to 'discord/channel.py')
-rw-r--r--discord/channel.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/channel.py b/discord/channel.py
index 7204d31f..edb45817 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -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)