aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-05-31 15:28:54 -0400
committerRapptz <[email protected]>2017-05-31 15:28:54 -0400
commitd85e479be666c36533a3ef31a7ab04b2ec5c1cdf (patch)
tree6ea3d7cddbc38c334be6dfff79acc784e3212739 /docs
parentAdd some margin for supported operations sections. (diff)
downloaddiscord.py-d85e479be666c36533a3ef31a7ab04b2ec5c1cdf.tar.xz
discord.py-d85e479be666c36533a3ef31a7ab04b2ec5c1cdf.zip
Minor fix in migrating page.
Diffstat (limited to 'docs')
-rw-r--r--docs/migrating.rst2
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.