sm00th / bitlbee-discord

Bitlbee plugin for Discord (http://discordapp.com)
GNU General Public License v2.0
290 stars 27 forks source link

Update away status handler #121

Closed Alcaro closed 6 years ago

Alcaro commented 6 years ago

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

Corosauce commented 6 years ago

Rebuilt with this change and seemed to stop the connection looping. All good here.

killerrabbit commented 6 years ago

Applied the diff and it works for me as well. Thanks Alcaro.

Sophira commented 6 years ago

Confirming that this change fixes the connect loop issue for me, too. Thank you!

sm00th commented 6 years ago

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.