From 2cd6d771eceebfa8aeb641ebd5abb454d8b52d3e Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 26 May 2019 02:28:49 -0400 Subject: 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. --- discord/object.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'discord/object.py') 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 '' % self.id + @property def created_at(self): """Returns the snowflake's creation time in UTC.""" -- cgit v1.2.3