Browse Source
Fix AttributeError when fetching reactions without cache
pull/5186/head
Tyler North
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
discord/iterators.py
|
|
@ -157,7 +157,7 @@ class ReactionIterator(_AsyncIterator): |
|
|
|
self.limit -= retrieve |
|
|
|
self.after = Object(id=int(data[-1]['id'])) |
|
|
|
|
|
|
|
if self.guild is None: |
|
|
|
if self.guild is None or isinstance(self.guild, Object): |
|
|
|
for element in reversed(data): |
|
|
|
await self.users.put(User(state=self.state, data=element)) |
|
|
|
else: |
|
|
|