diff options
| author | Bryan Forbes <[email protected]> | 2018-08-25 14:38:19 -0500 |
|---|---|---|
| committer | Bryan Forbes <[email protected]> | 2018-08-25 14:38:19 -0500 |
| commit | deda5c4e97259474f922966edd269d96c8051f84 (patch) | |
| tree | 6af8bad7abf3c8f4f26747e8d980ebe6801bb9e6 | |
| parent | Fix latency being able to be negative (diff) | |
| download | discord.py-deda5c4e97259474f922966edd269d96c8051f84.tar.xz discord.py-deda5c4e97259474f922966edd269d96c8051f84.zip | |
Fix behavior of reaction type-conversion
| -rw-r--r-- | discord/message.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/message.py b/discord/message.py index f8af8e2f..c704d9d0 100644 --- a/discord/message.py +++ b/discord/message.py @@ -720,7 +720,8 @@ class Message: @staticmethod def _emoji_reaction(emoji): if isinstance(emoji, Reaction): - return emoji.emoji + emoji = emoji.emoji + if isinstance(emoji, Emoji): return '%s:%s' % (emoji.name, emoji.id) if isinstance(emoji, PartialEmoji): |