diff --git a/src/onebot/action/go-cqhttp/SetModelShow.ts b/src/onebot/action/go-cqhttp/SetModelShow.ts new file mode 100644 index 00000000..be648e17 --- /dev/null +++ b/src/onebot/action/go-cqhttp/SetModelShow.ts @@ -0,0 +1,10 @@ +import BaseAction from '../BaseAction'; +import { ActionName } from '../types'; + +export default class SetModelShow extends BaseAction { + actionName = ActionName.SetModelShow; + + async _handle(payload: null): Promise { + return null; + } +} diff --git a/src/onebot/action/index.ts b/src/onebot/action/index.ts index 736f1618..c5dcdf72 100644 --- a/src/onebot/action/index.ts +++ b/src/onebot/action/index.ts @@ -77,6 +77,7 @@ import { NapCatCore } from '@/core'; import { NapCatOneBot11Adapter } from '@/onebot'; import GetGuildProfile from './guild/GetGuildProfile'; +import SetModelShow from './go-cqhttp/SetModelShow'; export type ActionMap = Map>; @@ -162,7 +163,8 @@ export function createActionMap(onebotContext: NapCatOneBot11Adapter, coreContex new SetGroupHeader(onebotContext, coreContext), new FetchCustomFace(onebotContext, coreContext), new GoCQHTTPUploadPrivateFile(onebotContext, coreContext), - new GetGuildProfile(onebotContext, coreContext) + new GetGuildProfile(onebotContext, coreContext), + new SetModelShow(onebotContext, coreContext), ]; const actionMap = new Map(); for (const action of actionHandlers) { diff --git a/src/onebot/action/types.ts b/src/onebot/action/types.ts index 8ea51880..161b4470 100644 --- a/src/onebot/action/types.ts +++ b/src/onebot/action/types.ts @@ -105,5 +105,6 @@ export enum ActionName { GOCQHTTP_UploadPrivateFile = 'upload_private_file', TestApi01 = 'test_api_01', FetchEmojiLike = 'fetch_emoji_like', - GetGuildProfile = "get_guild_service_profile" + GetGuildProfile = "get_guild_service_profile", + SetModelShow = "_set_model_show" }