Add response type to message
This commit is contained in:
@@ -134,7 +134,7 @@ async def leave_server(guild_id):
|
||||
@command
|
||||
async def get_status(websocket, request_id):
|
||||
# Return the status object
|
||||
await websocket.send({"request_id": request_id, "status": client_status})
|
||||
await websocket.send({"type":"response", "request_id": request_id, "status": client_status})
|
||||
|
||||
@command
|
||||
async def run_task(websocket, task_id, duration_seconds):
|
||||
|
||||
Reference in New Issue
Block a user