From d24c2a09b6f1b94a8d312af9bbd2c2e7f04276ca Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 4 May 2017 06:03:02 -0400 Subject: Change some format usage to use %-formatting. Minor speed increase when we're not doing excessive attribute access or any type of formatting. --- discord/abc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/abc.py') diff --git a/discord/abc.py b/discord/abc.py index a4cdae5a..c5440479 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -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): -- cgit v1.2.3