From 35afcf03bb08667f2a8a4913a5cc3ae06d044f7b Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 29 Nov 2025 00:56:28 +0800 Subject: [PATCH] fix: wrong Message instance --- client-protocol/LingChairClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client-protocol/LingChairClient.ts b/client-protocol/LingChairClient.ts index 61a21a8..1962d1a 100644 --- a/client-protocol/LingChairClient.ts +++ b/client-protocol/LingChairClient.ts @@ -8,7 +8,7 @@ import UserMySelf from "./UserMySelf.ts" import CallbackError from "./CallbackError.ts" import Chat from "./Chat.ts" import { CallableMethodBeforeAuth } from "lingchair-internal-shared" -import Message from "./Message.ts"; +import Message from "./Message.ts" export { User, @@ -53,7 +53,7 @@ export default class LingChairClient { for (const v of (this.events[name] || [])) v(({ "Client.onMessage": { - message: new Message(this, data) + message: new Message(this, data.msg) } })[name]) } catch (e) {