Darkside138 / DiscordSoundboard

Java Soundboard for Discord
Apache License 2.0
137 stars 55 forks source link

Bot repeatedly disconnects from server #173

Closed knuckleduster05 closed 1 year ago

knuckleduster05 commented 1 year ago

As of 3/20/23, the bot will connect to a server to try to play a sound, then disconnect and reconnect indefinitely.

Version: 3.2.3

akimbo-md commented 1 year ago

Been having the same issue here. I've been unable to get the latest release working so I've been running 3.10

AtomicW0mbat commented 1 year ago

I am also experiencing this issue

pan-sveta commented 1 year ago

Same issue

TheJambo commented 1 year ago

Been having the same issue here. I've been unable to get the latest release working so I've been running 3.10

Does 3.10 actually work? Same issue for me on older versions :/

pan-sveta commented 1 year ago

Possibly related to this issue?

IP Discovery Upcoming Change  We recently pushed out a change related to Voice Connections that broke apps sending 70-byte UDP packets to the voice server when using IP Discovery. While the documentation and deprecation were updated in December 2019, there wasn't communication around the the change starting to roll out so we've temporarily reverted the change to give developers more time to handle the breaking change.  ⚠️ Starting 15 March 2023, all apps with Voice Connections using IP Discovery must send 74-byte UDP packets. IP Discovery requests sending the deprecated 70-byte packet will no longer receive a response.  Some 3rd party libraries may be needed to be updated to support this change, so if your app uses Voice Connections and a 3rd party library, check with the maintainer(s) to see if it sends the updated packet and/or whether you need to update the library version you're using.  📰 Read the IP Discovery documentation for more information about the UDP packet to send: https://discord.com/developers/docs/topics/voice-connections#ip-discovery

knuckleduster05 commented 1 year ago

Looks like that is the exact problem, I wonder if JDA has a newer version of their 4.4.0 LTS that would work on this, or if it has to be updated to 5.0.0

knuckleduster05 commented 1 year ago

So, I rebuilt the soundboard with JDA:4.4.1_353 and it works now. I wish I knew how to post a request to change the git repo.

Darkside138 commented 1 year ago

I released a new version last night that updates the code to the new 5.beta.6. This seems to have resolved the issue.