midjourney-discord-api-php icon indicating copy to clipboard operation
midjourney-discord-api-php copied to clipboard

Upload image

Open Loffel opened this issue 1 year ago • 5 comments

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

Loffel avatar May 16 '23 13:05 Loffel

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

SofianeBoumedine avatar Jun 15 '23 15:06 SofianeBoumedine

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 :)

Loffel avatar Jun 15 '23 17:06 Loffel

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 avatar Jul 11 '23 05:07 batdan

@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

batdan avatar Jul 16 '23 07:07 batdan

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"]}

vaigtech avatar Jan 23 '24 13:01 vaigtech