diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/migrating.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/migrating.rst b/docs/migrating.rst index 1b656e6a..947889b2 100644 --- a/docs/migrating.rst +++ b/docs/migrating.rst @@ -638,7 +638,7 @@ For example, to wait for a message: :: def pred(m): return m.author == message.author and m.channel == message.channel - msg = await client.wait_for('message', check=m) + msg = await client.wait_for('message', check=pred) To facilitate multiple returns, :meth:`Client.wait_for` returns either a single argument, no arguments, or a tuple of arguments. |