diff --git a/src/onebot/index.ts b/src/onebot/index.ts index b993dfccb..9d858d74f 100644 --- a/src/onebot/index.ts +++ b/src/onebot/index.ts @@ -58,7 +58,7 @@ export class NapCatOneBot11Adapter { readonly context: InstanceContext; configLoader: OB11ConfigLoader; - apis: StableOneBotApiWrapper; + public readonly apis: StableOneBotApiWrapper; networkManager: OB11NetworkManager; actions: ActionMap; private readonly bootTime = Date.now() / 1000; diff --git a/src/onebot/network/active-http.ts b/src/onebot/network/active-http.ts index 5e62369f5..432be2a32 100644 --- a/src/onebot/network/active-http.ts +++ b/src/onebot/network/active-http.ts @@ -50,7 +50,7 @@ export class OB11ActiveHttpAdapter implements IOB11NetworkAdapter { try { this.obContext.apis.QuickActionApi .handleQuickOperation(event as QuickActionEvent, resJson) - .catch(e=>this.logger.logError(e)); + .catch(e => this.logger.logError(e)); } catch (e: any) { this.logger.logError('[OneBot] [Http Client] 新消息事件HTTP上报返回快速操作失败', e); }