aboutsummaryrefslogtreecommitdiff
path: root/discord/role.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-05-04 06:03:02 -0400
committerRapptz <[email protected]>2017-05-04 06:04:55 -0400
commitd24c2a09b6f1b94a8d312af9bbd2c2e7f04276ca (patch)
treef4447e9ae80b13b8f8db966e194f9678f4d04dc6 /discord/role.py
parentAdd support for message delete audit log action type. (diff)
downloaddiscord.py-d24c2a09b6f1b94a8d312af9bbd2c2e7f04276ca.tar.xz
discord.py-d24c2a09b6f1b94a8d312af9bbd2c2e7f04276ca.zip
Change some format usage to use %-formatting.
Minor speed increase when we're not doing excessive attribute access or any type of formatting.
Diffstat (limited to 'discord/role.py')
-rw-r--r--discord/role.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/role.py b/discord/role.py
index a0d4050c..3a1d6c8a 100644
--- a/discord/role.py
+++ b/discord/role.py
@@ -148,7 +148,7 @@ class Role(Hashable):
@property
def mention(self):
"""Returns a string that allows you to mention a role."""
- return '<@&{}>'.format(self.id)
+ return '<@&%s>' % self.id
@property
def members(self):