Add response type to message
This commit is contained in:
@@ -134,7 +134,7 @@ async def leave_server(guild_id):
|
|||||||
@command
|
@command
|
||||||
async def get_status(websocket, request_id):
|
async def get_status(websocket, request_id):
|
||||||
# Return the status object
|
# 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
|
@command
|
||||||
async def run_task(websocket, task_id, duration_seconds):
|
async def run_task(websocket, task_id, duration_seconds):
|
||||||
|
|||||||
Reference in New Issue
Block a user