chore: OBAPI

This commit is contained in:
手瓜一十雪
2024-08-09 16:22:35 +08:00
parent 67d92c61f7
commit 5e79994ec2
16 changed files with 28 additions and 165 deletions

View File

@@ -19,6 +19,7 @@ export class SetMsgEmojiLike extends BaseAction<Payload, any> {
actionName = ActionName.SetMsgEmojiLike;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
const NTQQMsgApi = this.CoreContext.getApiContext().MsgApi;
const msg = MessageUnique.getMsgIdAndPeerByShortId(parseInt(payload.message_id.toString()));
if (!msg) {
throw new Error('msg not found');