From 04b331af71c31b8279be49a1c48b455c8fd0deef Mon Sep 17 00:00:00 2001 From: 127Wzc <52766844+127Wzc@users.noreply.github.com> Date: Wed, 3 Jul 2024 16:51:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:onebot=E5=9B=9E=E5=A4=8D=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/common.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/utils/common.js b/utils/common.js index 0fea08a..e1ab430 100644 --- a/utils/common.js +++ b/utils/common.js @@ -734,6 +734,15 @@ export async function getImg (e) { e.img = i } } + if (e.reply_id) { + let reply = (await e.getReply(e.reply_id)).message; + for (const val of reply) { + if (val.type === "image") { + e.img = [val.url]; + break; + } + } + } return e.img }