Remove comment
This commit is contained in:
@@ -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}))
|
||||
|
||||
Reference in New Issue
Block a user