diff options
| author | Rapptz <[email protected]> | 2017-05-04 06:03:02 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-04 06:04:55 -0400 |
| commit | d24c2a09b6f1b94a8d312af9bbd2c2e7f04276ca (patch) | |
| tree | f4447e9ae80b13b8f8db966e194f9678f4d04dc6 /discord/member.py | |
| parent | Add support for message delete audit log action type. (diff) | |
| download | discord.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/member.py')
| -rw-r--r-- | discord/member.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/member.py b/discord/member.py index 35ae584a..5cc722e7 100644 --- a/discord/member.py +++ b/discord/member.py @@ -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): |