diff options
| author | Rapptz <[email protected]> | 2021-04-08 06:02:47 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-04-08 06:02:47 -0400 |
| commit | 99fc9505107183faa59aad9e7753f293eba88836 (patch) | |
| tree | f615ac678c5dc194fd2aa3a9a048a188b761b0d9 /discord/emoji.py | |
| parent | Update joined command in basic_bot to use f-strings (diff) | |
| download | discord.py-99fc9505107183faa59aad9e7753f293eba88836.tar.xz discord.py-99fc9505107183faa59aad9e7753f293eba88836.zip | |
Use f-strings in more places that were missed.
Diffstat (limited to 'discord/emoji.py')
| -rw-r--r-- | discord/emoji.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/emoji.py b/discord/emoji.py index 02c0ddc8..bf7982ab 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -111,11 +111,11 @@ class Emoji(_EmojiTag): def __str__(self): if self.animated: - return '<a:{0.name}:{0.id}>'.format(self) - return "<:{0.name}:{0.id}>".format(self) + return f'<a:{self.name}:{self.id}>' + return f'<:{self.name}:{self.id}>' def __repr__(self): - return '<Emoji id={0.id} name={0.name!r} animated={0.animated} managed={0.managed}>'.format(self) + return f'<Emoji id={self.id} name={self.name!r} animated={self.animated} managed={self.managed}>' def __eq__(self, other): return isinstance(other, _EmojiTag) and self.id == other.id |