mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 06:31:13 +00:00
Fix typo in delBuddy method name & fix #1550
Renamed the delBuudy method to delBuddy in NTQQFriendApi and updated its usage in GoCQHTTPDeleteFriend to ensure correct method invocation.
This commit is contained in:
parent
81e4e54f25
commit
59d4b08982
@ -43,7 +43,7 @@ export class NTQQFriendApi {
|
|||||||
return retMap;
|
return retMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
async delBuudy (uid: string, tempBlock = false, tempBothDel = false) {
|
async delBuddy (uid: string, tempBlock = false, tempBothDel = false) {
|
||||||
return this.context.session.getBuddyService().delBuddy({
|
return this.context.session.getBuddyService().delBuddy({
|
||||||
friendUid: uid,
|
friendUid: uid,
|
||||||
tempBlock,
|
tempBlock,
|
||||||
|
|||||||
@ -32,6 +32,6 @@ export class GoCQHTTPDeleteFriend extends OneBotAction<Payload, unknown> {
|
|||||||
message: '不是好友',
|
message: '不是好友',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return await this.core.apis.FriendApi.delBuudy(uid, payload.temp_block, payload.temp_both_del);
|
return await this.core.apis.FriendApi.delBuddy(uid, payload.temp_block, payload.temp_both_del);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user