aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-12-07 07:23:12 -0500
committerRapptz <[email protected]>2016-12-07 07:23:12 -0500
commit51fda76555ec6ad4af021a9d566e7995df1d8c65 (patch)
treef9d61b4b6b08c35b8bf7837a13fb868219205f9e
parentFix role comparisons. (diff)
downloaddiscord.py-51fda76555ec6ad4af021a9d566e7995df1d8c65.tar.xz
discord.py-51fda76555ec6ad4af021a9d566e7995df1d8c65.zip
Fix typo in wait_for_reaction documentation.
-rw-r--r--discord/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py
index aaaf425e..948b5b92 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -773,7 +773,7 @@ class Client:
if message.content.startswith('$react'):
msg = await client.send_message(message.channel, 'React with thumbs up or thumbs down.')
res = await client.wait_for_reaction(['\N{THUMBS UP SIGN}', '\N{THUMBS DOWN SIGN}'], message=msg)
- await client.send_message(message.channel, '{.user} reacted with {.reaction.emoji}!'.format(res))
+ await client.send_message(message.channel, '{0.user} reacted with {0.reaction.emoji}!'.format(res))
Checking for reaction emoji regardless of skin tone:
@@ -789,7 +789,7 @@ class Client:
return e.startswith(('\N{THUMBS UP SIGN}', '\N{THUMBS DOWN SIGN}'))
res = await client.wait_for_reaction(message=msg, check=check)
- await client.send_message(message.channel, '{.user} reacted with {.reaction.emoji}!'.format(res))
+ await client.send_message(message.channel, '{0.user} reacted with {0.reaction.emoji}!'.format(res))
Parameters
-----------