aboutsummaryrefslogtreecommitdiff
path: root/discord/reaction.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/reaction.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/reaction.py')
-rw-r--r--discord/reaction.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/discord/reaction.py b/discord/reaction.py
index 6edd29a6..a0cb80b8 100644
--- a/discord/reaction.py
+++ b/discord/reaction.py
@@ -127,20 +127,6 @@ class Reaction:
The ``after`` parameter must represent a member
and meet the :class:`abc.Snowflake` abc.
- Parameters
- ------------
- limit: int
- The maximum number of results to return.
- If not provided, returns all the users who
- reacted to the message.
- after: :class:`abc.Snowflake`
- For pagination, reactions are sorted by member.
-
- Raises
- --------
- HTTPException
- Getting the users for the reaction failed.
-
Examples
---------
@@ -157,6 +143,20 @@ class Reaction:
winner = random.choice(users)
await channel.send('{} has won the raffle.'.format(winner))
+ Parameters
+ ------------
+ limit: :class:`int`
+ The maximum number of results to return.
+ If not provided, returns all the users who
+ reacted to the message.
+ after: :class:`abc.Snowflake`
+ For pagination, reactions are sorted by member.
+
+ Raises
+ --------
+ HTTPException
+ Getting the users for the reaction failed.
+
Yields
--------
Union[:class:`User`, :class:`Member`]