aboutsummaryrefslogtreecommitdiff
path: root/discord/reaction.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-06-26 01:27:09 -0400
committerRapptz <[email protected]>2017-06-26 01:27:09 -0400
commit649e4de14916a0bf9eedba72db35a4b652221e70 (patch)
tree503d0d36580443743922990319f1b20d36eb8340 /discord/reaction.py
parentProperly sort roles and discard everyone role in Member.colour. (diff)
downloaddiscord.py-649e4de14916a0bf9eedba72db35a4b652221e70.tar.xz
discord.py-649e4de14916a0bf9eedba72db35a4b652221e70.zip
Add Reaction.__str__
Diffstat (limited to 'discord/reaction.py')
-rw-r--r--discord/reaction.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/discord/reaction.py b/discord/reaction.py
index 91c606d9..2491d1bf 100644
--- a/discord/reaction.py
+++ b/discord/reaction.py
@@ -50,7 +50,7 @@ class Reaction:
.. describe:: str(x)
- Returns the channel's name.
+ Returns the string form of the reaction's emoji.
Attributes
-----------
@@ -87,6 +87,9 @@ class Reaction:
def __hash__(self):
return hash(self.emoji)
+ def __str__(self):
+ return str(self.emoji)
+
def __repr__(self):
return '<Reaction emoji={0.emoji!r} me={0.me} count={0.count}>'.format(self)