refactor: inline getApiContext()

This commit is contained in:
Wesley F. Young committed 2024-08-11 19:10:42 +08:00
1 parent 9f9749548a
commit e7e8e99946
71 files changed
+173 -167

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ export class FetchCustomFace extends BaseAction<Payload, string[]> {
async _handle(payload: Payload) {
//48 可能正好是QQ需要的一个页面的数量 Tagged Mlikiowa
const ret = await this.CoreContext.getApiContext().MsgApi.fetchFavEmojiList(payload.count || 48);
const ret = await this.CoreContext.apis.MsgApi.fetchFavEmojiList(payload.count || 48);
return ret.emojiInfoList.map(e => e.url);
}
}