12 lines
425 B
TypeScript
12 lines
425 B
TypeScript
import { OneBotAction } from '@/onebot/action/OneBotAction';
|
|
import { ActionName } from '../types';
|
|
|
|
export class FetchUserProfileLike extends OneBotAction<{ qq: number }, any> {
|
|
actionName = ActionName.FetchUserProfileLike;
|
|
|
|
async _handle(payload: { qq: number }) {
|
|
if (!payload.qq) throw new Error('qq is required');
|
|
return await this.core.apis.UserApi.getUidByUinV2(payload.qq.toString());
|
|
}
|
|
}
|