None author param in wait_for_message allows any author

This commit is contained in:
Khazhismel 2015-12-22 03:51:45 -05:00
parent ca450fb0e4
commit bb433990e8

View File

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