mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Change some format usage to use %-formatting.
Minor speed increase when we're not doing excessive attribute access or any type of formatting.
This commit is contained in:
1 parent
86bfcdd129
commit
d24c2a09b6
5 files changed
+9
-9
No files matched your search
+1
-1
@@ -194,7 +194,7 @@ class GuildChannel:
|
||||
@property
|
||||
def mention(self):
|
||||
"""str : The string that allows you to mention the channel."""
|
||||
return '<#{0.id}>'.format(self)
|
||||
return '<#%s>' % self.id
|
||||
|
||||
@property
|
||||
def created_at(self):
|
||||
|
||||
Reference in new issue
Block a user