aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-11-17 20:41:57 -0500
committerRapptz <[email protected]>2016-11-17 20:42:06 -0500
commit44624b7f442724c047d6ab6fd16a301a5e0c4bc2 (patch)
tree61c90a3adb8b23feef9d85546914c1cf2d0f4193
parentAdd support for clearing a message's reactions. (diff)
downloaddiscord.py-44624b7f442724c047d6ab6fd16a301a5e0c4bc2.tar.xz
discord.py-44624b7f442724c047d6ab6fd16a301a5e0c4bc2.zip
Documentation fixes.
-rw-r--r--discord/client.py8
-rw-r--r--discord/reaction.py2
2 files changed, 8 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py
index d2fe4af3..aaaf425e 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -978,7 +978,7 @@ class Client:
Raises
--------
HTTPException
- Adding the reaction failed.
+ Removing the reaction failed.
Forbidden
You do not have the proper permissions to remove the reaction.
NotFound
@@ -1124,10 +1124,14 @@ class Client:
Sending a TTS message:
+ .. code-block:: python
+
await client.send_message(message.channel, 'Goodbye.', tts=True)
Sending an embed message:
+ .. code-block:: python
+
em = discord.Embed(title='My Embed Title', description='My Embed Content.', colour=0xDEADBF)
em.set_author(name='Someone', icon_url=client.user.default_avatar_url)
await client.send_message(message.channel, embed=em)
@@ -1415,6 +1419,8 @@ class Client:
The message to edit.
new_content
The new content to replace the message with.
+ embed: :class:`Embed`
+ The new embed to replace the original embed with.
Raises
-------
diff --git a/discord/reaction.py b/discord/reaction.py
index 7232a7b4..2e4f3ce4 100644
--- a/discord/reaction.py
+++ b/discord/reaction.py
@@ -55,7 +55,7 @@ class Reaction:
count : int
Number of times this reaction was made
me : bool
- If the user has send this reaction.
+ If the user sent this reaction.
message: :class:`Message`
Message this reaction is for.
"""