From dceba9d962483a0f423e53d472e18c8cd84c0759 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 30 Dec 2016 04:34:42 -0500 Subject: Add useful repr to all data classes. --- discord/game.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'discord/game.py') diff --git a/discord/game.py b/discord/game.py index 2ccabe28..aefc6efc 100644 --- a/discord/game.py +++ b/discord/game.py @@ -61,6 +61,9 @@ class Game: def __str__(self): return self.name + def __repr__(self): + return ''.format(self) + def _iterator(self): for attr in self.__slots__: value = getattr(self, attr, None) -- cgit v1.2.3