ferranfg / midjourney-discord-api-php

Generate images using Midjourney Bot through the Discord API.
https://ferranfigueredo.com
MIT License
137 stars 35 forks source link

Upload image #17

Open Loffel opened 1 year ago

Loffel commented 1 year ago

Hello. Are there any tips for sending a request with an image?

SofianeBoumedine commented 1 year ago

Hi I search the same, you advanced on this subject ? In discord you can submit an url but with this lib It didn't work. I think it's in parameter that we can find the solutions

Loffel commented 1 year ago

Hi I search the same, you advanced on this subject ? In discord you can submit an url but with this lib It didn't work. I think it's in parameter that we can find the solutions

I just paste an image link before a prompt :)

batdan commented 1 year ago

I had to recode a whole midjourney package to solve this problem of urls in the prompt.

The reason is simple, when we add a link, Midjourney downloads the image and replaces our link with its own link in the prompt.

The prompt is therefore no longer identical to the original one.

As this class checks if the image is created by looking for your initial prompts, it will never be found because the url has changed

batdan commented 1 year ago

@gmatzner I rewrote the whole package to no longer have this problem. I was also stuck on one of my projects.

https://packagist.org/packages/batdan/midjourney-api-php

vaigtech commented 7 months ago

Hi, I'm getting this error. Any idea how to solve?

["message":protected]=> string(174) "Client error: POST https://discord.com/api/interactions resulted in a 400 Bad Request response: {"data": ["This command is outdated, please try again in a few minutes"]}