mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 07:50:25 +00:00
feat: FetchOtherProfileLike
This commit is contained in:
11
src/onebot/action/extends/FetchOtherProfileLike.ts
Normal file
11
src/onebot/action/extends/FetchOtherProfileLike.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
|
||||
export class FetchOtherProfileLike extends BaseAction<{ qq: number }, any> {
|
||||
actionName = ActionName.FetchOtherProfileLike;
|
||||
|
||||
async _handle(payload: { qq: number }) {
|
||||
if (!payload.qq) throw new Error('qq is required');
|
||||
return await this.core.apis.UserApi.getUidByUinV2(payload.qq.toString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user