aboutsummaryrefslogtreecommitdiff
path: root/discord/reaction.py
diff options
context:
space:
mode:
authorNCPlayz <[email protected]>2019-05-18 06:04:54 -0400
committerRapptz <[email protected]>2019-06-07 19:27:46 -0400
commit3c9bcc285147154a2980f6e661efdfa676672b6a (patch)
tree657bafa75e4e0d45361e394443ea932ad70e86a7 /discord/reaction.py
parentAdded comment for/redo system information (diff)
downloaddiscord.py-3c9bcc285147154a2980f6e661efdfa676672b6a.tar.xz
discord.py-3c9bcc285147154a2980f6e661efdfa676672b6a.zip
Improve documentation
Diffstat (limited to 'discord/reaction.py')
-rw-r--r--discord/reaction.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/reaction.py b/discord/reaction.py
index a0cb80b8..276fd847 100644
--- a/discord/reaction.py
+++ b/discord/reaction.py
@@ -54,7 +54,7 @@ class Reaction:
Attributes
-----------
- emoji: :class:`Emoji` or :class:`str`
+ emoji: Union[:class:`Emoji`, :class:`str`]
The reaction emoji. May be a custom emoji, or a unicode emoji.
count: :class:`int`
Number of times this reaction was made
@@ -99,7 +99,7 @@ class Reaction:
Remove the reaction by the provided :class:`User` from the message.
If the reaction is not your own (i.e. ``user`` parameter is not you) then
- the :attr:`discord.permissions.Permissions.manage_messages` permission is needed.
+ the :attr:`~Permissions.manage_messages` permission is needed.
The ``user`` parameter must represent a user or member and meet
the :class:`abc.Snowflake` abc.
@@ -139,7 +139,7 @@ class Reaction:
Flattening into a list: ::
users = await reaction.users().flatten()
- # users is now a list...
+ # users is now a list of User...
winner = random.choice(users)
await channel.send('{} has won the raffle.'.format(winner))