mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 16:03: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:
@@ -249,8 +249,8 @@ class Member(discord.abc.Messageable):
|
||||
def mention(self):
|
||||
"""Returns a string that mentions the member."""
|
||||
if self.nick:
|
||||
return '<@!{}>'.format(self.id)
|
||||
return '<@{}>'.format(self.id)
|
||||
return '<@!%s>' % self.id
|
||||
return '<@%s>' % self.id
|
||||
|
||||
@property
|
||||
def display_name(self):
|
||||
|
||||
Reference in New Issue
Block a user