set_qzone_ban

set_qzone_ban写操作空间
拉黑或解除拉黑某人(修改机器人自身 QQ 空间黑名单;enable=true 拉黑,false 解除)

Call via POST http://127.0.0.1:3000/set_qzone_ban (JSON params as the body) or WebSocket.

Parameters

Param Type Required Default Description
user_id uint 目标 QQ 号
enable bool true true 拉黑,false 解除拉黑

Returns (data)

Returns the standard OneBot envelope; the data shape is not yet documented.

Examples

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/set_qzone_ban \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"user_id":10001,"enable":true}'
Using an AI assistant?

MCP-capable clients can discover and call this action directly — no hand-written HTTP. See MCP.