Skip to content

Commit

Permalink
Game objects are really dumb.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Aug 21, 2017
1 parent 4c87490 commit ae9d734
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions discord/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,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 self.name
Expand Down

0 comments on commit ae9d734

Please sign in to comment.