aboutsummaryrefslogtreecommitdiff
path: root/discord/reaction.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-12-30 04:34:42 -0500
committerRapptz <[email protected]>2017-01-03 09:52:06 -0500
commitdceba9d962483a0f423e53d472e18c8cd84c0759 (patch)
treed39c4906807eb0d2ec55070715f237b82ecc12d2 /discord/reaction.py
parentFix handling of author update and missing type attribute in Message. (diff)
downloaddiscord.py-dceba9d962483a0f423e53d472e18c8cd84c0759.tar.xz
discord.py-dceba9d962483a0f423e53d472e18c8cd84c0759.zip
Add useful repr to all data classes.
Diffstat (limited to 'discord/reaction.py')
-rw-r--r--discord/reaction.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/reaction.py b/discord/reaction.py
index 2e47e397..d80f716b 100644
--- a/discord/reaction.py
+++ b/discord/reaction.py
@@ -83,6 +83,9 @@ class Reaction:
def __hash__(self):
return hash(self.emoji)
+ def __repr__(self):
+ return '<Reaction emoji={0.emoji!r} me={0.me} count={0.count}>'.format(self)
+
@asyncio.coroutine
def users(self, limit=100, after=None):
"""|coro|