mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
None author param in wait_for_message allows any author
This commit is contained in:
parent
ca450fb0e4
commit
bb433990e8
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user