From ab46afee1db869046375f3e1c26b0cdb4dfdb3b7 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 13 Dec 2015 20:05:58 -0500 Subject: Changed functions that return a constant value into properties. --- discord/channel.py | 1 + 1 file changed, 1 insertion(+) (limited to 'discord/channel.py') 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) -- cgit v1.2.3