Fix typo in delBuddy method name & fix #1550
Some checks are pending
Build NapCat Artifacts / Build-Framework (push) Waiting to run
Build NapCat Artifacts / Build-Shell (push) Waiting to run

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 81e4e54f25
commit 59d4b08982
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);
}
}