From bb433990e84f14c9178864b15b428ccb0d73b00d Mon Sep 17 00:00:00 2001 From: Khazhismel Date: Tue, 22 Dec 2015 03:51:45 -0500 Subject: [PATCH] None author param in wait_for_message allows any author --- discord/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord/client.py b/discord/client.py index 8e14e8753..3013c5053 100644 --- a/discord/client.py +++ b/discord/client.py @@ -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