How to properly restart a voice connection after bot restart?

So lets say I restart my bot but I want all voice connections that my bot was in before the restart to be reconnected. What is the best way to do this? Does it involve using the voice sessionId?
5 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
dzlandis
dzlandisOP3y ago
That's what I currently do but I was wondering if there was a better more optimized way to do it 🤷‍♂️ Its possible that may just be the best way to do it though Sort of just wondering what popular voice specific bots (like music bots) do in this situation to resume playback/connection.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
dzlandis
dzlandisOP3y ago
Ye, it takes longer than 2 minutes for my bot to startup so that won't work And my voice connections aren't handled in something like LavaLink as of now.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server