mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-31 13:32:57 +00:00 
			
		
		
		
	None author param in wait_for_message allows any author
This commit is contained in:
		| @@ -590,7 +590,10 @@ class Client: | ||||
|         """ | ||||
|  | ||||
|         def predicate(message): | ||||
|             result = message.author == author | ||||
|             result = True | ||||
|             if author is not None: | ||||
|                 result = result and message.author == author | ||||
|  | ||||
|             if content is not None: | ||||
|                 result = result and message.content == content | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user