diff options
| author | apple502j <[email protected]> | 2020-04-18 19:34:41 +0900 |
|---|---|---|
| committer | apple502j <[email protected]> | 2020-04-18 19:34:41 +0900 |
| commit | 14f80fce459afcac3958c578fd10fe5a05317e7d (patch) | |
| tree | bbcfe7d0ab3484fa87f628e46f136b4dd693f446 | |
| parent | Fix cases where member_count is equal to 0 (diff) | |
| download | discord.py-14f80fce459afcac3958c578fd10fe5a05317e7d.tar.xz discord.py-14f80fce459afcac3958c578fd10fe5a05317e7d.zip | |
Fix PartialEmoji.url.read for reactions
| -rw-r--r-- | discord/state.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/state.py b/discord/state.py index 046b548d..8ad6c01e 100644 --- a/discord/state.py +++ b/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 |