aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
diff options
context:
space:
mode:
authorNCPlayz <[email protected]>2019-03-16 21:43:55 +0000
committerRapptz <[email protected]>2019-03-19 08:24:42 -0400
commitfb02191b80972a9cf7c3baa765cb3aa84c6f1cfa (patch)
tree7a0a5c9aaa5cc5bac26fc51caf4fdffbaee64c26 /discord/message.py
parentTake back ownership of files from aiohttp for retrying requests. (diff)
downloaddiscord.py-fb02191b80972a9cf7c3baa765cb3aa84c6f1cfa.tar.xz
discord.py-fb02191b80972a9cf7c3baa765cb3aa84c6f1cfa.zip
Organise documentation
Diffstat (limited to 'discord/message.py')
-rw-r--r--discord/message.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/discord/message.py b/discord/message.py
index 4b6f5301..ae0f4801 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -108,7 +108,7 @@ class Attachment:
Returns
--------
- int
+ :class:`int`
The number of bytes written.
"""
url = self.proxy_url if use_cached else self.url
@@ -583,13 +583,13 @@ class Message:
Parameters
-----------
- content: Optional[str]
+ content: Optional[:class:`str`]
The new content to replace the message with.
Could be ``None`` to remove the content.
embed: Optional[:class:`Embed`]
The new embed to replace the original with.
Could be ``None`` to remove the embed.
- delete_after: Optional[float]
+ delete_after: Optional[:class:`float`]
If provided, the number of seconds to wait in the background
before deleting the message we just edited. If the deletion fails,
then it is silently ignored.
@@ -690,7 +690,7 @@ class Message:
Parameters
------------
- emoji: Union[:class:`Emoji`, :class:`Reaction`, :class:`PartialEmoji`, str]
+ emoji: Union[:class:`Emoji`, :class:`Reaction`, :class:`PartialEmoji`, :class:`str`]
The emoji to react with.
Raises
@@ -723,7 +723,7 @@ class Message:
Parameters
------------
- emoji: Union[:class:`Emoji`, :class:`Reaction`, :class:`PartialEmoji`, str]
+ emoji: Union[:class:`Emoji`, :class:`Reaction`, :class:`PartialEmoji`, :class:`str`]
The emoji to remove.
member: :class:`abc.Snowflake`
The member for which to remove the reaction.