mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add useful repr to all data classes.
This commit is contained in:
1 parent
ec6c7f8b34
commit
dceba9d962
12 files changed
+48
-1
No files matched your search
@@ -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|
|
||||
|
||||
Reference in new issue
Block a user