From 63237bc1128c8ceebd3db731e6f17596da4a27ac Mon Sep 17 00:00:00 2001 From: "Wesley F. Young" Date: Sat, 10 Aug 2024 20:43:50 +0800 Subject: [PATCH] refactor: rename postEvent -> emitEvent to prevent ambiguity --- src/onebot/network/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onebot/network/index.ts b/src/onebot/network/index.ts index f357dab2..3c378613 100644 --- a/src/onebot/network/index.ts +++ b/src/onebot/network/index.ts @@ -18,7 +18,7 @@ export class OB11NetworkManager { return this.adapters; } - async PostEvent(event: OB11BaseEvent) { + async emitEvent(event: OB11BaseEvent) { // Mlikiowa V2.0.0 Refactor Todo return Promise.all(this.adapters.map(adapter => adapter.onEvent(event))); }