Closed Alcaro closed 6 years ago
Rebuilt with this change and seemed to stop the connection looping. All good here.
Applied the diff and it works for me as well. Thanks Alcaro.
Confirming that this change fixes the connect loop issue for me, too. Thank you!
Thank you very much. I'm travelling and currently can't check it myself, but since it is quite simple, urgent and feedback is positive - merging it anyway.
Turns out Discord changed the Status Update Structure and Game Object objects; status/afk are now mandatory, games now require a type, and idle_since was renamed to since and changed to milliseconds.
Sending old-style messages causes immediate disconnection. Strange how Discord changed that without bumping API version, but their entire setup is weird.
Either way, the fix is simple: let's send new-style status messages instead.
e: Fixes #120