feat(onebot): set profile gender and return stranger online status

set_qq_profile accepts sex. get_stranger_info now returns the online
status, extended status, and custom status that QQ already provides
on the user profile.

Closes #397
Closes #398
This commit is contained in:
DrSmoothl committed 2026-08-19 21:46:03 +08:00
1 parent 8fdd41ea22
commit d8521d4345
11 files changed
+81 -13

No files matched your search

+6 -2
View File
@@ -86,9 +86,9 @@ export interface Oidb0x89a_0HistoryVisibility {
settings?: pb<2, Oidb0x89a_0HistoryVisibilitySettings>;
field12?: pb<12, uint_32>;
}
// 0x89A_8 — one masked group-member capability update. These are deny bits,
// 0x89A_0 — one masked group-member capability update. These are deny bits,
// so callers clear the selected bit to allow a capability and set it to deny.
// Same settings tags as invite policy; the command variant is what differs.
// Same settings tags as invite policy.
export interface Oidb0x89a_0MemberPermissionSettings {
appPrivilegeFlag?: pb_optional<23, uint_32>;
appPrivilegeMask?: pb_optional<24, uint_32>;
@@ -266,6 +266,10 @@ export interface OidbUserInfoResponse {
export interface AvatarInfo {
url?: pb<5, string>;
}
export interface OidbCustomStatus {
faceId?: pb<1, uint_32>;
msg?: pb<2, string>;
}
export interface OidbFriendListNumber {
numbers?: pb_repeated<1, uint_32>;
}