feat(onebot): read administrator verification message preference

Include verification message reception in administrator permission results. Preserve unavailable states and surface failed reads.

Update SDK contracts, action metadata, documentation and isolated behavior coverage.
This commit is contained in:
DrSmoothl committed 2026-10-27 15:13:17 +08:00
1 parent bc3930a2ce
commit 8b8a9df894
13 files changed
+412 -47

No files matched your search

+11 -3
View File
@@ -6513,7 +6513,7 @@
{
"name": "get_group_admin_permissions",
"aliases": [],
"summary": "读取指定管理员的撤回、移除成员及每日移除上限",
"summary": "读取指定管理员的撤回、移除成员、每日移除上限及接收验证消息状态",
"returns": "服务器返回的管理员权限;未返回或未指定的开关为 null。每日上限仅在移除权限开启时返回,0 表示不限。",
"returnsSchema": {
"type": "object",
@@ -6544,6 +6544,13 @@
"null"
],
"description": "每日可移除人数,0 不限;权限关闭或未指定时为 null"
},
"receive_verify": {
"type": [
"boolean",
"null"
],
"description": "是否接收加群验证消息;null 表示服务器未返回状态"
}
},
"required": [
@@ -6551,7 +6558,8 @@
"user_id",
"recall_member_message",
"kick_member",
"kick_member_per_day"
"kick_member_per_day",
"receive_verify"
],
"additionalProperties": false
},
@@ -6562,7 +6570,7 @@
"group_id": 20001,
"user_id": 10001
},
"notes": "user_id 为目标管理员 QQ 号;不包含接收验证消息开关。"
"notes": "user_id 为目标管理员 QQ 号;包含接收加群验证消息状态。"
}
],
"readOnly": true,
+11 -3
View File
@@ -6516,7 +6516,7 @@ export const ACTIONS: CatalogAction[] = [
{
"name": "get_group_admin_permissions",
"aliases": [],
"summary": "读取指定管理员的撤回、移除成员及每日移除上限",
"summary": "读取指定管理员的撤回、移除成员、每日移除上限及接收验证消息状态",
"returns": "服务器返回的管理员权限;未返回或未指定的开关为 null。每日上限仅在移除权限开启时返回,0 表示不限。",
"returnsSchema": {
"type": "object",
@@ -6547,6 +6547,13 @@ export const ACTIONS: CatalogAction[] = [
"null"
],
"description": "每日可移除人数,0 不限;权限关闭或未指定时为 null"
},
"receive_verify": {
"type": [
"boolean",
"null"
],
"description": "是否接收加群验证消息;null 表示服务器未返回状态"
}
},
"required": [
@@ -6554,7 +6561,8 @@ export const ACTIONS: CatalogAction[] = [
"user_id",
"recall_member_message",
"kick_member",
"kick_member_per_day"
"kick_member_per_day",
"receive_verify"
],
"additionalProperties": false
},
@@ -6565,7 +6573,7 @@ export const ACTIONS: CatalogAction[] = [
"group_id": 20001,
"user_id": 10001
},
"notes": "user_id 为目标管理员 QQ 号;不包含接收验证消息开关。"
"notes": "user_id 为目标管理员 QQ 号;包含接收加群验证消息状态。"
}
],
"readOnly": true,