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/object.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/object.py')
| -rw-r--r-- | discord/object.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/object.py b/discord/object.py index ea4fac98..ef2a98cf 100644 --- a/discord/object.py +++ b/discord/object.py @@ -64,6 +64,9 @@ class Object(Hashable): def __init__(self, id): self.id = id + def __repr__(self): + return '<Object id=%r>' % self.id + @property def created_at(self): """Returns the snowflake's creation time in UTC.""" |