diff options
| author | Rapptz <[email protected]> | 2017-08-21 02:49:49 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-08-21 02:49:49 -0400 |
| commit | f1e59ea9338a5387a4baf1fdb6386813caaf6a6e (patch) | |
| tree | 3ce99d55a4fdf6a0bd45dd6c7041692186930980 | |
| parent | Fix some docstrings. (diff) | |
| download | discord.py-f1e59ea9338a5387a4baf1fdb6386813caaf6a6e.tar.xz discord.py-f1e59ea9338a5387a4baf1fdb6386813caaf6a6e.zip | |
Game objects are really dumb.
| -rw-r--r-- | discord/game.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/game.py b/discord/game.py index 493b00df..238f22ea 100644 --- a/discord/game.py +++ b/discord/game.py @@ -57,10 +57,10 @@ class Game: __slots__ = ('name', 'type', 'url') - def __init__(self, *, name, url=None, type=0, **kwargs): - self.name = name - self.url = url - self.type = type + def __init__(self, **kwargs): + self.name = kwargs.get('name') + self.url = kwargs.get('url') + self.type = kwargs.get('type', 0) def __str__(self): return str(self.name) |