Browse Source

Documentation fixes.

pull/408/head
Rapptz 9 years ago
parent
commit
44624b7f44
  1. 8
      discord/client.py
  2. 2
      discord/reaction.py

8
discord/client.py

@ -978,7 +978,7 @@ class Client:
Raises Raises
-------- --------
HTTPException HTTPException
Adding the reaction failed. Removing the reaction failed.
Forbidden Forbidden
You do not have the proper permissions to remove the reaction. You do not have the proper permissions to remove the reaction.
NotFound NotFound
@ -1124,10 +1124,14 @@ class Client:
Sending a TTS message: Sending a TTS message:
.. code-block:: python
await client.send_message(message.channel, 'Goodbye.', tts=True) await client.send_message(message.channel, 'Goodbye.', tts=True)
Sending an embed message: Sending an embed message:
.. code-block:: python
em = discord.Embed(title='My Embed Title', description='My Embed Content.', colour=0xDEADBF) 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) em.set_author(name='Someone', icon_url=client.user.default_avatar_url)
await client.send_message(message.channel, embed=em) await client.send_message(message.channel, embed=em)
@ -1415,6 +1419,8 @@ class Client:
The message to edit. The message to edit.
new_content new_content
The new content to replace the message with. The new content to replace the message with.
embed: :class:`Embed`
The new embed to replace the original embed with.
Raises Raises
------- -------

2
discord/reaction.py

@ -55,7 +55,7 @@ class Reaction:
count : int count : int
Number of times this reaction was made Number of times this reaction was made
me : bool me : bool
If the user has send this reaction. If the user sent this reaction.
message: :class:`Message` message: :class:`Message`
Message this reaction is for. Message this reaction is for.
""" """

Loading…
Cancel
Save