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

OnMessageReceived instand Ratelimit [User Token] #3368

Open
Spielepapagei opened this issue Sep 21, 2023 · 7 comments
Open

OnMessageReceived instand Ratelimit [User Token] #3368

Spielepapagei opened this issue Sep 21, 2023 · 7 comments

Comments

@Spielepapagei
Copy link

I tried to log only my direct messages.
However, when using the OnMessageReceived event, it logs about five messages before disconnecting.
It immediately disconnects again when I try to restart it.

Is there a method to receive only direct messages or to avoid getting a RaidLimit?

private void MessageReceived(DiscordSocketClient client, MessageEventArgs message)
{
     Logger.Info($"Message Received from {message.Message.Author} he/she sayid {message.Message.Content}");
}
@Spielepapagei Spielepapagei changed the title OnMessageReceived 5Messages and got an Ratelimit [User Token] OnMessageReceived instand Ratelimit [User Token] Sep 21, 2023
@verticalsync
Copy link
Contributor

Most likely your IP being from a datacenter or such (e.g. a server or vpn) discord has been testing some stuff out

@Hi-ImKyle
Copy link

Most likely your IP being from a datacenter or such (e.g. a server or vpn)

Even on a normal residential connection it still does it for me. Sometimes I never get any messages, sometimes I only get a few. It always stops after a short time though.

@Cuarento
Copy link

Cuarento commented Jul 8, 2024

Do you find a solution for it? I have the same problem

@Hi-ImKyle
Copy link

I don't think this library is being updated anymore..

@verticalsync
Copy link
Contributor

I don't think this library is being updated anymore..

It hasn't been updating for a long while before you even made this issue, it's abandoned and would be too much work to make it work properly and implement new featuees.

@Hi-ImKyle
Copy link

I didn't make the issue, but your original comment about it being potentially related to the used IP belonging to a VPN/datacentre is wrong. If you say its abandoned, you may as well archive the repo..

@verticalsync
Copy link
Contributor

I didn't make the issue, but your original comment about it being potentially related to the used IP belonging to a VPN/datacentre is wrong. If you say its abandoned, you may as well archive the repo..

Yeah as I said "discord has been testing some stuff out", which was true at the time considering mine and iLinked's servers got blocked or something like that if I remember correctly, nor can I archive this repo since I don't own it.

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

4 participants