diff options
| author | Rapptz <[email protected]> | 2019-05-26 02:28:49 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-05-26 02:32:47 -0400 |
| commit | 2cd6d771eceebfa8aeb641ebd5abb454d8b52d3e (patch) | |
| tree | 9312a08ca2d261c1a547b240e8e4c94a31b7769e /discord/emoji.py | |
| parent | Add note for Message.tts (diff) | |
| download | discord.py-2cd6d771eceebfa8aeb641ebd5abb454d8b52d3e.tar.xz discord.py-2cd6d771eceebfa8aeb641ebd5abb454d8b52d3e.zip | |
Make __repr__ slightly more detailed and add a few missing ones.
This includes raw events (which didn't have any) and a few other
types that were missing them. Upon review some more useful fields were
added to the repr output which would be more useful during debugging.
Diffstat (limited to 'discord/emoji.py')
| -rw-r--r-- | discord/emoji.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/emoji.py b/discord/emoji.py index bad4a4fc..2ab349f7 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -206,7 +206,7 @@ class Emoji: return "<:{0.name}:{0.id}>".format(self) def __repr__(self): - return '<Emoji id={0.id} name={0.name!r}>'.format(self) + return '<Emoji id={0.id} name={0.name!r} animated={0.animated} managed={0.managed}>'.format(self) def __eq__(self, other): return isinstance(other, (PartialEmoji, Emoji)) and self.id == other.id |