feat(onebot): expose qidian flags on group member info

Return qidian master and crew flags from group member info and member list. Ordinary accounts keep the flags at zero.

Refs #404
This commit is contained in:
makotowu authored and GitHub committed 2026-08-26 23:30:41 +08:00
1 parent ef73157c68
commit e1bb9b4722
7 files changed
+154 -8

No files matched your search

@@ -116,4 +116,15 @@ describe('group information actions', () => {
data: { user_id: 654323, shut_up_timestamp: 0 },
});
});
it('documents qidian flags on both member-list and single-member results', () => {
const listSchema = getGroupMemberList.describe().returnsSchema;
const infoSchema = getGroupMemberInfo.describe().returnsSchema;
for (const schema of [listSchema?.items?.properties, infoSchema?.properties]) {
expect(schema).toHaveProperty('qidian_master_flag');
expect(schema).toHaveProperty('qidian_crew_flag');
expect(schema).toHaveProperty('qidian_crew_flag_2');
}
});
});