From 84ebd4537c65c96e245d6a69a09c23dfd5ed51fb Mon Sep 17 00:00:00 2001 From: Atridad Lahiji <88056492+atridadl@users.noreply.github.com> Date: Fri, 7 Jul 2023 21:52:38 -0600 Subject: [PATCH] oops... --- src/commands/fancypic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/fancypic.ts b/src/commands/fancypic.ts index f0bf8d4..773f99c 100644 --- a/src/commands/fancypic.ts +++ b/src/commands/fancypic.ts @@ -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'))); }