mirror of https://gitlab.com/litecord/litecord.git
gateway.websocket: extract status.game properly
This commit is contained in:
parent
78be4c6fab
commit
813ff7707f
|
|
@ -425,6 +425,8 @@ class GatewayWebsocket:
|
|||
game = status['activities'][0]
|
||||
except (KeyError, IndexError):
|
||||
game = None
|
||||
else:
|
||||
game = status['game']
|
||||
|
||||
# construct final status
|
||||
status = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue