Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Sep 16, 2024
1 parent dc04cfc commit 67fb74d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import BaseAction from '../BaseAction';
import { ActionName } from '../types';

export class FetchOtherProfileLike extends BaseAction<{ qq: number }, any> {
actionName = ActionName.FetchOtherProfileLike;
export class FetchUserProfileLike extends BaseAction<{ qq: number }, any> {
actionName = ActionName.FetchUserProfileLike;

async _handle(payload: { qq: number }) {
if (!payload.qq) throw new Error('qq is required');
Expand Down
6 changes: 3 additions & 3 deletions src/onebot/action/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ import SetGroupPortrait from './go-cqhttp/SetGroupPortrait';
import { FetchCustomFace } from './extends/FetchCustomFace';
import GoCQHTTPUploadPrivateFile from './go-cqhttp/UploadPrivateFile';
import { FetchEmojiLike } from './extends/FetchEmojiLike';
import { FetchUserProfileLike } from './extends/FetchUserProfileLike';
import { NapCatCore } from '@/core';

import { NapCatOneBot11Adapter } from '@/onebot';
import GetGuildProfile from './guild/GetGuildProfile';
import SetModelShow from './go-cqhttp/SetModelShow';
Expand All @@ -84,7 +84,7 @@ import { GetGroupFileSystemInfo } from '@/onebot/action/go-cqhttp/GetGroupFileSy
import { GetGroupRootFiles } from '@/onebot/action/go-cqhttp/GetGroupRootFiles';
import { GetGroupFilesByFolder } from '@/onebot/action/go-cqhttp/GetGroupFilesByFolder';
import { GetGroupSystemMsg } from './system/GetSystemMsg';
import { FetchOtherProfileLike } from '@/onebot/action/extends/fetchOtherProfileLike';


export type ActionMap = Map<string, BaseAction<any, any>>;

Expand Down Expand Up @@ -179,7 +179,7 @@ export function createActionMap(obContext: NapCatOneBot11Adapter, core: NapCatCo
new GetGroupFileSystemInfo(obContext, core),
new GetGroupFilesByFolder(obContext, core),
new GetGroupSystemMsg(obContext, core),
new FetchOtherProfileLike(obContext, core),
new FetchUserProfileLike(obContext, core),
];
const actionMap = new Map();
for (const action of actionHandlers) {
Expand Down
2 changes: 1 addition & 1 deletion src/onebot/action/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,5 @@ export enum ActionName {
DelGroupNotice = '_del_group_notice',
GetGroupInfoEx = "get_group_info_ex",
GetGroupSystemMsg = 'get_group_system_msg',
FetchOtherProfileLike = "fetch_other_profile_like",
FetchUserProfileLike = "fetch_user_profile_like",
}

0 comments on commit 67fb74d

Please sign in to comment.