diff options
Diffstat (limited to 'discord/reaction.py')
| -rw-r--r-- | discord/reaction.py | 28 |
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`] |