oops...
This commit is contained in:
parent
3d0466152c
commit
84ebd4537c
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ export class UserCommand extends Command {
|
||||||
const responseJSON = (await imageGenResponse.json()) as GenerationResponse;
|
const responseJSON = (await imageGenResponse.json()) as GenerationResponse;
|
||||||
const imageAttachment: AttachmentBuilder[] = [];
|
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')));
|
imageAttachment.push(new AttachmentBuilder(Buffer.from(responseJSON.artifacts[i].base64, 'base64')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue