diff --git a/packages/napcat-core/apis/friend.ts b/packages/napcat-core/apis/friend.ts index 22d4df96..a9c7b272 100644 --- a/packages/napcat-core/apis/friend.ts +++ b/packages/napcat-core/apis/friend.ts @@ -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, diff --git a/packages/napcat-onebot/action/go-cqhttp/GoCQHTTPDeleteFriend.ts b/packages/napcat-onebot/action/go-cqhttp/GoCQHTTPDeleteFriend.ts index ee9fc07f..c37a172e 100644 --- a/packages/napcat-onebot/action/go-cqhttp/GoCQHTTPDeleteFriend.ts +++ b/packages/napcat-onebot/action/go-cqhttp/GoCQHTTPDeleteFriend.ts @@ -32,6 +32,6 @@ export class GoCQHTTPDeleteFriend extends OneBotAction { 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); } }