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:
手瓜一十雪
2026-01-25 21:09:12 +08:00
parent fb46d8cc53
commit 0d4ff2abe4
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ export class NTQQFriendApi {
return retMap;
}
async delBuudy (uid: string, tempBlock = false, tempBothDel = false) {
async delBuddy (uid: string, tempBlock = false, tempBothDel = false) {
return this.context.session.getBuddyService().delBuddy({
friendUid: uid,
tempBlock,

View File

@@ -32,6 +32,6 @@ export class GoCQHTTPDeleteFriend extends OneBotAction<Payload, unknown> {
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);
}
}