Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Imagine with Websocket #249

Open
morganfuchs opened this issue Dec 5, 2023 · 1 comment
Open

Multiple Imagine with Websocket #249

morganfuchs opened this issue Dec 5, 2023 · 1 comment

Comments

@morganfuchs
Copy link

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.

@stricklandye
Copy link

stricklandye commented Dec 11, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants