Browse Source

Fix PartialEmoji.url.read for reactions

pull/4016/head
apple502j 5 years ago
parent
commit
14f80fce45
  1. 2
      discord/state.py

2
discord/state.py

@ -992,7 +992,7 @@ class ConnectionState:
try:
return self._emojis[emoji_id]
except KeyError:
return PartialEmoji(animated=data.get('animated', False), id=emoji_id, name=data['name'])
return PartialEmoji.with_state(self, animated=data.get('animated', False), id=emoji_id, name=data['name'])
def _upgrade_partial_emoji(self, emoji):
emoji_id = emoji.id

Loading…
Cancel
Save