diff --git a/README.md b/README.md index dc02dffc..d14613e8 100644 --- a/README.md +++ b/README.md @@ -31,5 +31,7 @@ NapCatQQ (aka 猫猫框架) 是现代化的基于 NTQQ 的 Bot 协议端实现 --- ## 约法三章 +> [!CAUTION]\ +> **请不要在 QQ 官方群聊和任何影响力较大的简中互联网平台(包括但不限于: 哔哩哔哩,微博,知乎,抖音等)发布和讨论*任何*与本项目存在相关性的信息** 任何使用本仓库代码的地方,都应当严格遵守[本仓库开源许可](./LICENSE)。**此外,禁止任何项目未经授权二次分发或基于 NapCat 代码开发。** 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,