From 8de382fcd331d208cef4b62a5667c2637fb08237 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 6 Jan 2018 17:35:03 -0500 Subject: [PATCH] Change logic in PartialEmoji.__str__ a little. --- discord/emoji.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discord/emoji.py b/discord/emoji.py index 82a4a69a8..13eeb307e 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -72,7 +72,9 @@ class PartialEmoji(namedtuple('PartialEmoji', 'animated name id')): def __str__(self): if self.id is None: return self.name - return '<%s:%s:%s>' % ('a' if self.animated else '', self.name, self.id) + if self.animated: + return '' % (self.name, self.id) + return '<:%s:%s>' % (self.name, self.id) def is_custom_emoji(self): """Checks if this is a custom non-Unicode emoji."""