Browse Source

Fix potential infinite loop in Reaction.users

pull/10109/head
Rapptz 3 years ago
committed by dolfies
parent
commit
5ddf32dd09
  1. 3
      discord/reaction.py

3
discord/reaction.py

@ -237,6 +237,9 @@ class Reaction:
if data:
limit -= len(data)
after = Object(id=int(data[-1]['id']))
else:
# Terminate loop if we received no data
limit = 0
if guild is None or isinstance(guild, Object):
for raw_user in reversed(data):

Loading…
Cancel
Save