feat(onebot): expose qidian account flags on stranger info
Return qidian master and crew flags from get_stranger_info so callers can tell a qidian account from a normal one. Ordinary accounts keep the flags at zero. Existing stranger fields are unchanged. Refs #404
This commit is contained in:
1 parent
6782fd9cb3
commit
83f643f01b
9 files changed
+97
-3
No files matched your search
@@ -296,6 +296,9 @@ function formatStrangerInfo(p: UserProfileInfo): JsonObject {
|
||||
batteryStatus: p.batteryStatus ?? 0,
|
||||
customStatus: p.customStatus ?? null,
|
||||
customStatusDescInfo: p.customStatusDesc ?? '',
|
||||
qidian_master_flag: p.qidianMasterFlag,
|
||||
qidian_crew_flag: p.qidianCrewFlag,
|
||||
qidian_crew_flag_2: p.qidianCrewFlag2,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user