mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
Fix getting all guides when some of them don't exist
This commit is contained in:
parent
075a6d4fd0
commit
541709453b
1 changed files with 3 additions and 1 deletions
|
|
@ -126,7 +126,9 @@ export class Guide extends ZZZPlugin {
|
|||
for (let i = 1; i <= this.maxNum; i++) {
|
||||
const guidePath = await this.getGuidePath(i, name, !!isUpdate);
|
||||
// msg.push(segment.image(`file://${guidePath}`));
|
||||
msg.push(segment.image(guidePath));
|
||||
if (guidePath) {
|
||||
msg.push(segment.image(guidePath));
|
||||
}
|
||||
}
|
||||
if (msg.length) {
|
||||
await this.reply(await common.makeForwardMsg(this.e, [msg]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue