feat(onebot): expose birthdays in stranger profiles (#594)

Include available birthday information in stranger profiles and preserve hidden birth years.
This commit is contained in:
C₂₂H₂₅NO₆ authored and GitHub committed 2026-10-31 18:01:16 +08:00
1 parent 6b8362e049
commit 947af4b22c
10 files changed
+192 -6

No files matched your search

+13 -1
View File
@@ -12615,7 +12615,7 @@
"name": "get_stranger_info",
"aliases": [],
"summary": "获取陌生人信息",
"returns": "用户资料,含账号标识、等级别名和可用的注册时间、会员信息。注册时间或会员信息未返回时省略对应字段;登录天数暂无可靠来源,不返回占位值。",
"returns": "用户资料,含账号标识、等级别名和可用的注册时间、生日、会员信息。注册时间、生日或会员信息未返回时省略对应字段,出生年份未公开时只省略年份;登录天数暂无可靠来源,不返回占位值。",
"returnsSchema": {
"type": "object",
"properties": {
@@ -12663,6 +12663,18 @@
"type": "integer",
"description": "注册时间戳(秒),不可用时省略"
},
"birthday_year": {
"type": "integer",
"description": "生日年份,兼容 NapCat;未公开或不可用时省略"
},
"birthday_month": {
"type": "integer",
"description": "生日月份(1-12),兼容 NapCat;不可用时省略"
},
"birthday_day": {
"type": "integer",
"description": "生日日期(1-31),兼容 NapCat;不可用时省略"
},
"is_vip": {
"type": "boolean",
"description": "超级会员状态,兼容 NapCat;不可用时省略"
+13 -1
View File
@@ -12618,7 +12618,7 @@ export const ACTIONS: CatalogAction[] = [
"name": "get_stranger_info",
"aliases": [],
"summary": "获取陌生人信息",
"returns": "用户资料,含账号标识、等级别名和可用的注册时间、会员信息。注册时间或会员信息未返回时省略对应字段;登录天数暂无可靠来源,不返回占位值。",
"returns": "用户资料,含账号标识、等级别名和可用的注册时间、生日、会员信息。注册时间、生日或会员信息未返回时省略对应字段,出生年份未公开时只省略年份;登录天数暂无可靠来源,不返回占位值。",
"returnsSchema": {
"type": "object",
"properties": {
@@ -12666,6 +12666,18 @@ export const ACTIONS: CatalogAction[] = [
"type": "integer",
"description": "注册时间戳(秒),不可用时省略"
},
"birthday_year": {
"type": "integer",
"description": "生日年份,兼容 NapCat;未公开或不可用时省略"
},
"birthday_month": {
"type": "integer",
"description": "生日月份(1-12),兼容 NapCat;不可用时省略"
},
"birthday_day": {
"type": "integer",
"description": "生日日期(1-31),兼容 NapCat;不可用时省略"
},
"is_vip": {
"type": "boolean",
"description": "超级会员状态,兼容 NapCat;不可用时省略"