mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix
This commit is contained in:
parent
bf71328650
commit
ad74854e42
@ -17,7 +17,11 @@ class DeleteMsg extends BaseAction<Payload, void> {
|
|||||||
if (!msg) {
|
if (!msg) {
|
||||||
throw `消息${payload.message_id}不存在`
|
throw `消息${payload.message_id}不存在`
|
||||||
}
|
}
|
||||||
await this.ctx.ntMsgApi.recallMsg(msg.Peer, [msg.MsgId])
|
const data = await this.ctx.ntMsgApi.recallMsg(msg.Peer, [msg.MsgId])
|
||||||
|
if (data.result !== 0) {
|
||||||
|
this.ctx.logger.error('delete_msg', payload.message_id, data)
|
||||||
|
throw `消息撤回失败`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user