aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhazhismel <[email protected]>2015-12-22 03:51:45 -0500
committerKhazhismel <[email protected]>2015-12-22 03:51:45 -0500
commitbb433990e84f14c9178864b15b428ccb0d73b00d (patch)
tree122418d162b48ba9f16ab6f1a94b7f6a677547fa
parentFix README example code. (diff)
downloaddiscord.py-bb433990e84f14c9178864b15b428ccb0d73b00d.tar.xz
discord.py-bb433990e84f14c9178864b15b428ccb0d73b00d.zip
None author param in wait_for_message allows any author
-rw-r--r--discord/client.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index 8e14e875..3013c505 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