fix:onebot回复图片

This commit is contained in:
127Wzc 2024-07-03 16:51:37 +08:00 committed by 127Wzc
parent aaaee383a8
commit 04b331af71

View file

@ -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
}