fix: getFriend

This commit is contained in:
linyuchen 2024-04-06 23:30:40 +08:00
parent b34c7f045c
commit 240cdade07

View File

@ -28,7 +28,7 @@ export const llonebotError: LLOneBotError = {
export async function getFriend(uinOrUid: string): Promise<Friend | undefined> {
let filterKey = isNumeric(uinOrUid) ? "uin" : "uid"
let filterKey = isNumeric(uinOrUid.toString()) ? "uin" : "uid"
let filterValue = uinOrUid
let friend = friends.find(friend => friend[filterKey] === filterValue.toString())
// if (!friend) {