diff options
| author | Khazhismel <[email protected]> | 2015-12-22 03:51:45 -0500 |
|---|---|---|
| committer | Khazhismel <[email protected]> | 2015-12-22 03:51:45 -0500 |
| commit | bb433990e84f14c9178864b15b428ccb0d73b00d (patch) | |
| tree | 122418d162b48ba9f16ab6f1a94b7f6a677547fa | |
| parent | Fix README example code. (diff) | |
| download | discord.py-bb433990e84f14c9178864b15b428ccb0d73b00d.tar.xz discord.py-bb433990e84f14c9178864b15b428ccb0d73b00d.zip | |
None author param in wait_for_message allows any author
| -rw-r--r-- | discord/client.py | 5 |
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 |