From 2553cf6b72c2b6d4fc069e230f139f74233a6aad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 26 Aug 2024 13:58:28 +0800 Subject: [PATCH] style: lint --- src/onebot/action/group/DelEssenceMsg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onebot/action/group/DelEssenceMsg.ts b/src/onebot/action/group/DelEssenceMsg.ts index 9de301e7..5b2cf14c 100644 --- a/src/onebot/action/group/DelEssenceMsg.ts +++ b/src/onebot/action/group/DelEssenceMsg.ts @@ -19,7 +19,7 @@ export default class DelEssenceMsg extends BaseAction { async _handle(payload: Payload): Promise { const NTQQGroupApi = this.core.apis.GroupApi; - const msg = MessageUnique.getMsgIdAndPeerByShortId(parseInt(payload.message_id.toString())); + const msg = MessageUnique.getMsgIdAndPeerByShortId(+payload.message_id); if (!msg) throw new Error('msg not found'); return await NTQQGroupApi.removeGroupEssence( msg.Peer.peerUid,