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

Multiple Imagine with Websocket

Open morganfuchs opened this issue 1 year ago • 1 comments

Hello, how does the websocket mode work? I have the impression that as soon as I send the same description several times, it doesn't work properly.

I'm looking for a solution for ephemeral or deleted messages and it seems to me that websockets are the solution.

morganfuchs avatar Dec 05 '23 14:12 morganfuchs

There is not difference between using user token or robot token to establish websocket connection with discord server. If you want to collect ephemeral messages, here is the snippet (It's GO code but the principle is same.)

// just replace token with your user token
sess, err := discordgo.New(token)

If you do not understand,feel free to ask further. I have stucked with same issue monthes ago and no one helps. So I am glad to help others out.

stricklandye avatar Dec 11 '23 12:12 stricklandye