mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-24 18:13:00 +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): |         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: |             if content is not None: | ||||||
|                 result = result and message.content == content |                 result = result and message.content == content | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user