mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +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:
@ -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):
|
||||
|
Reference in New Issue
Block a user