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 7b966c3d..c4817e3b 100644
--- a/discord/emoji.py
+++ b/discord/emoji.py
@@ -103,6 +103,9 @@ class Emoji(Hashable):
def __str__(self):
return "<:{0.name}:{0.id}>".format(self)
+ def __repr__(self):
+ return '<Emoji id={0.id} name={0.name!r}>'.format(self)
+
@property
def created_at(self):
"""Returns the emoji's creation time in UTC."""