Fix AttributeError when fetching reactions without cache

This commit is contained in:
Tyler North 2020-08-01 19:00:37 -07:00 committed by GitHub
parent 14fd3dbaa7
commit ae1ec8072f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: