aboutsummaryrefslogtreecommitdiff
path: root/discord/gateway.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-05-06 16:38:22 -0400
committerRapptz <[email protected]>2016-05-06 16:38:22 -0400
commit3feba5d1bb06b22482e94132bd1f979fbeaf61b5 (patch)
tree2843a4f32d4f95b76d10ccf14a3bbeb080df9d18 /discord/gateway.py
parentAdd a TimeoutError if VoiceClient.connect fails. (diff)
downloaddiscord.py-3feba5d1bb06b22482e94132bd1f979fbeaf61b5.tar.xz
discord.py-3feba5d1bb06b22482e94132bd1f979fbeaf61b5.zip
Add Game.type and Game.url attributes to change streaming status.
Diffstat (limited to 'discord/gateway.py')
-rw-r--r--discord/gateway.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/gateway.py b/discord/gateway.py
index 7ed7371b..5ecf58ce 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -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,