feat: GoCQHTTPDeleteFriend

This commit is contained in:
手瓜一十雪
2024-10-26 10:36:41 +08:00
parent 90f6896f3c
commit 7416e6caf6
4 changed files with 48 additions and 2 deletions

View File

@@ -34,7 +34,13 @@ export class NTQQFriendApi {
data.forEach((value) => retMap.set(value.uin!, value.uid!));
return retMap;
}
async delBuudy(uid: string, tempBlock = false, tempBothDel = false) {
return this.context.session.getBuddyService().delBuddy({
friendUid: uid,
tempBlock: tempBlock,
tempBothDel: tempBothDel
});
}
async getBuddyV2ExWithCate(refresh = false) {
const categoryMap: Map<string, any> = new Map();
const buddyService = this.context.session.getBuddyService();