From fb02191b80972a9cf7c3baa765cb3aa84c6f1cfa Mon Sep 17 00:00:00 2001 From: NCPlayz Date: Sat, 16 Mar 2019 21:43:55 +0000 Subject: Organise documentation --- discord/reaction.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'discord/reaction.py') 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`] -- cgit v1.2.3