docs(onebot): document qidian flags on stranger info

Fill in the stranger-info action docs, catalog, and remaining profile
fixtures after the qidian flags landed. Ordinary accounts still
default to zero.

Refs #404
This commit is contained in:
DrSmoothl committed 2026-08-22 12:41:47 +08:00
1 parent 83f643f01b
commit 2bd2643670
10 files changed
+91 -9

No files matched your search

@@ -76,7 +76,11 @@ function msgPushContext(
function makePipeline(opts: {
fetchGroupList?: () => Promise<void>;
fetchGroupMemberList?: (groupId: number) => Promise<void>;
fetchProfileByUid?: () => Promise<{ uin: number; uid: string; nickname: string; remark: string; qid: string; sex: string; age: number; sign: string; avatar: string; level: number }>;
fetchProfileByUid?: () => Promise<{
uin: number; uid: string; nickname: string; remark: string; qid: string;
sex: string; age: number; sign: string; avatar: string; level: number;
qidianMasterFlag: number; qidianCrewFlag: number; qidianCrewFlag2: number;
}>;
} = {}) {
const identity = IdentityService.memory('10001');
if (opts.fetchProfileByUid) {
@@ -84,6 +88,7 @@ function makePipeline(opts: {
fetchProfile: async () => ({
uin: 0, uid: '', nickname: '', remark: '', qid: '', sex: 'unknown',
age: 0, sign: '', avatar: '', level: 0,
qidianMasterFlag: 0, qidianCrewFlag: 0, qidianCrewFlag2: 0,
}),
fetchProfileByUid: opts.fetchProfileByUid,
});
@@ -327,6 +332,9 @@ describe('IncomingPacketPipeline TRACE lifecycle', () => {
sign: '',
avatar: '',
level: 0,
qidianMasterFlag: 0,
qidianCrewFlag: 0,
qidianCrewFlag2: 0,
};
},
});