mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Changed functions that return a constant value into properties.
This commit is contained in:
1 parent
c52e552888
commit
ab46afee1d
3 files changed
+4
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user