diff --git a/app/client.py b/app/client.py index f76cc88..0f4bf5f 100644 --- a/app/client.py +++ b/app/client.py @@ -135,7 +135,7 @@ async def leave_server(guild_id): @command async def get_status(websocket, request_id): # Return the status object - response_payload = {"status": client_status} # It's good practice to wrap the actual data in a 'payload' key + response_payload = {"status": client_status} # Corrected line: Convert the dictionary to a JSON string before sending await websocket.send(json.dumps({"type":"response", "request_id": request_id, "payload": response_payload}))