not-ilinked / Anarchy

The superior Discord API wrapper
https://anarchyteam.dev
207 stars 46 forks source link

OnMessageReceived instand Ratelimit [User Token] #3368

Open Spielepapagei opened 1 year ago

Spielepapagei commented 1 year ago

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}");
}
verticalsync commented 1 year ago

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 commented 8 months ago

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 commented 2 months ago

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

Hi-ImKyle commented 2 months ago

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

verticalsync commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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.