forked from Supositware/Haha-Yes
fix stupid mistake
This commit is contained in:
parent
81e96974b9
commit
2f4caf0e72
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ export default {
|
||||||
if (!res.ok) return interaction.editReply('An error has occured while trying to download your image.');
|
if (!res.ok) return interaction.editReply('An error has occured while trying to download your image.');
|
||||||
await streamPipeline(res.body, fs.createWriteStream(`${os.tmpdir()}/${args.image.name}.webp`));
|
await streamPipeline(res.body, fs.createWriteStream(`${os.tmpdir()}/${args.image.name}.webp`));
|
||||||
|
|
||||||
const b64Image = fs.readFileSync(`${os.tmpdir()}/${args.image.name}`, { encoding: 'base64' });
|
const b64Image = fs.readFileSync(`${os.tmpdir()}/${args.image.name}.webp`, { encoding: 'base64' });
|
||||||
generate(interaction, args.prompt, client, b64Image);
|
generate(interaction, args.prompt, client, b64Image);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue