diff --git a/src/core/src/services/NodeIKernelMsgService.ts b/src/core/src/services/NodeIKernelMsgService.ts index 5984de50..3327dc5b 100644 --- a/src/core/src/services/NodeIKernelMsgService.ts +++ b/src/core/src/services/NodeIKernelMsgService.ts @@ -399,7 +399,29 @@ export interface NodeIKernelMsgService { // true, // true // ] - fetchFavEmojiList(str: string, num: number, uk1: boolean, uk2: boolean): Promise; + fetchFavEmojiList(str: string, num: number, uk1: boolean, uk2: boolean): Promise + }>; addFavEmoji(...args: unknown[]): unknown; diff --git a/src/onebot11/action/extends/FetchCustomFace.ts b/src/onebot11/action/extends/FetchCustomFace.ts index 817b5758..5edf95e5 100644 --- a/src/onebot11/action/extends/FetchCustomFace.ts +++ b/src/onebot11/action/extends/FetchCustomFace.ts @@ -11,10 +11,11 @@ const SchemaData = { type Payload = FromSchema; -export class FetchCustomFace extends BaseAction { +export class FetchCustomFace extends BaseAction { actionName = ActionName.FetchCustomFace; PayloadSchema = SchemaData; protected async _handle(payload: Payload) { - return await NTQQMsgApi.fetchFavEmojiList(payload.count || 48); + let ret = await NTQQMsgApi.fetchFavEmojiList(payload.count || 48); + return ret.emojiInfoList.map(e => e.url); } }