misc.generate: oceanic fixess

This commit is contained in:
Cynthia Foxwell 2022-10-16 16:30:20 -06:00
parent 1901fe1a52
commit a983e59c4d

View file

@ -489,7 +489,7 @@ generate.callback = async function (msg, line) {
const data = await request.json(); const data = await request.json();
const images = data.images const images = data.images
.map((img) => Buffer.from(img, "base64")) .map((img) => Buffer.from(img, "base64"))
.map((img, index) => ({file: img, name: `${index}.jpg`})); .map((img, index) => ({contents: img, name: `${index}.jpg`}));
const title = `Responses for "${safeString(line)}"`; const title = `Responses for "${safeString(line)}"`;
@ -498,7 +498,7 @@ generate.callback = async function (msg, line) {
retries > 0 ? " with " + retries + " retries" : "" retries > 0 ? " with " + retries + " retries" : ""
}`, }`,
embeds: [], embeds: [],
file: images, images,
}; };
let splitIndex = 0; let splitIndex = 0;