How to get an error message when the prompt is invalid?
The function client.imagine() is still running even if midjourney bot return error message in discord.
Example error message from discord bot:
Unrecognized parameter(s): –v, 5
/imagine Game-Art | An island with different geographical properties and multiple small cities floating in space ::10 Island | Floating island in space – waterfalls over the edge of the island falling into space – island fragments floating around the edge of the island ::6 Details | Mountain Ranges – Deserts – Snowy Landscapes – Small Villages – one larger city ::8 Environment | Galaxy – in deep space – other universes can be seen in the distance ::2 Style | Unreal Engine 5 – 8K UHD – Highly Detailed – Game-Art ::7—ar 16:9 —s 1000 –v 5
How to get an error message when the prompt is invalid? The function
client.imagine()
is still running even if midjourney bot return error message in discord.Example error message from discord bot: Unrecognized parameter(s): –v, 5 /imagine Game-Art | An island with different geographical properties and multiple small cities floating in space ::10 Island | Floating island in space – waterfalls over the edge of the island falling into space – island fragments floating around the edge of the island ::6 Details | Mountain Ranges – Deserts – Snowy Landscapes – Small Villages – one larger city ::8 Environment | Galaxy – in deep space – other universes can be seen in the distance ::2 Style | Unreal Engine 5 – 8K UHD – Highly Detailed – Game-Art ::7—ar 16:9 —s 1000 –v 5