mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat: 支持set_diy_online_status
This commit is contained in:
@@ -46,6 +46,15 @@ export class NTQQUserApi {
|
||||
});
|
||||
}
|
||||
|
||||
async setDiySelfOnlineStatus(faceId: string, wording: string, faceType: string) {
|
||||
return this.context.session.getMsgService().setStatus({
|
||||
status: 10,
|
||||
extStatus: 2000,
|
||||
customStatus: { faceId: faceId, wording: wording, faceType: faceType },
|
||||
batteryStatus: 0
|
||||
});
|
||||
}
|
||||
|
||||
async getBuddyRecommendContactArkJson(uin: string, sencenID = '') {
|
||||
return this.context.session.getBuddyService().getBuddyRecommendContactArkJson(uin, sencenID);
|
||||
}
|
||||
|
@@ -30,7 +30,7 @@ export interface NodeIKernelMsgService {
|
||||
|
||||
kickOffLine(DevInfo: unknown): unknown;
|
||||
|
||||
setStatus(args: { status: number, extStatus: number, batteryStatus: number }): Promise<GeneralCallResult>;
|
||||
setStatus(args: { status: number, extStatus: number, batteryStatus: number, customStatus?: { faceId: string, wording: string, faceType: string } }): Promise<GeneralCallResult>;
|
||||
|
||||
fetchStatusMgrInfo(): unknown;
|
||||
|
||||
|
Reference in New Issue
Block a user