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

This commit is contained in:
Rapptz committed 2016-05-06 16:38:22 -04:00
1 parent 701720a0f8
commit 3feba5d1bb
2 files changed
+17 -2

No files matched your search

+1 -1
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,