From 649e4de14916a0bf9eedba72db35a4b652221e70 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 26 Jun 2017 01:27:09 -0400 Subject: [PATCH] Add Reaction.__str__ --- discord/reaction.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord/reaction.py b/discord/reaction.py index 91c606d9e..2491d1bfb 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 ''.format(self)