Add Game.type and Game.url attributes to change streaming status.

This commit is contained in:
Rapptz
2016-05-06 16:38:22 -04:00
parent 701720a0f8
commit 3feba5d1bb
2 changed files with 17 additions and 2 deletions

View File

@ -371,7 +371,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
raise InvalidArgument('game must be of Game or None')
idle_since = None if idle == False else int(time.time() * 1000)
sent_game = game and {'name': game.name}
sent_game = dict(game) if game else None
payload = {
'op': self.PRESENCE,