chore: 提高对trss兼容性

This commit is contained in:
手瓜一十雪 2024-08-14 00:56:42 +08:00
parent d222ccfa58
commit 9e8d650cbd
3 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,10 @@
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
export default class SetModelShow extends BaseAction<null, null> {
actionName = ActionName.SetModelShow;
async _handle(payload: null): Promise<null> {
return null;
}
}

View File

@ -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<string, BaseAction<any, any>>;
@ -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) {

View File

@ -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"
}