aboutsummaryrefslogtreecommitdiff
path: root/discord/emoji.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/emoji.py')
-rw-r--r--discord/emoji.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/emoji.py b/discord/emoji.py
index 492d29ea..ff43d1b5 100644
--- a/discord/emoji.py
+++ b/discord/emoji.py
@@ -86,6 +86,9 @@ class PartialEmoji:
return '<a:%s:%s>' % (self.name, self.id)
return '<:%s:%s>' % (self.name, self.id)
+ def __repr__(self):
+ return '<{0.__class__.__name__} animated={0.animated} name={0.name!r} id={0.id}>'.format(self)
+
def __eq__(self, other):
if self.is_unicode_emoji():
return isinstance(other, PartialEmoji) and self.name == other.name