This commit is contained in:
Atridad Lahiji 2023-07-07 21:52:38 -06:00
parent 3d0466152c
commit 84ebd4537c
No known key found for this signature in database

View file

@ -116,7 +116,7 @@ export class UserCommand extends Command {
const responseJSON = (await imageGenResponse.json()) as GenerationResponse;
const imageAttachment: AttachmentBuilder[] = [];
for (let i = 0; i < responseJSON.artifacts.length - 1; i++) {
for (let i = 0; i < responseJSON.artifacts.length; i++) {
imageAttachment.push(new AttachmentBuilder(Buffer.from(responseJSON.artifacts[i].base64, 'base64')));
}