diff options
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 |