mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-31 13:32:57 +00:00 
			
		
		
		
	Fix potential infinite loop in Reaction.users
This commit is contained in:
		| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user