aboutsummaryrefslogtreecommitdiff
path: root/discord/game.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/game.py')
-rw-r--r--discord/game.py3
1 files changed, 3 insertions, 0 deletions
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 '<Game name={0.name!r} type={0.type!r} url={0.url!r}>'.format(self)
+
def _iterator(self):
for attr in self.__slots__:
value = getattr(self, attr, None)