You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failure to leave a vc when rebooted. Code works fine if the bot isn't rebooted.
letvc=message.guild.members.get(client.user.id).voiceChannelif(!vc){message.channel.send('I need to be in a voice channel to leave')}else{message.channel.send(`Leaving \`${vc.name}\``)vc.leave()}
In your reboot command, please do Client#destroy before you process.exit(). Doing so will terminate all voice connections and safely destroy the websocket.
This isn't a bug, if you reboot your bot without destroying it first or leaving any voice channels (as @Fyk0 said) then Discord will not know that your bot has been disconnected and assume it is still in the voice channel for about 40 seconds. The only way to get around this is to destroy your client before rebooting, or by leaving the channel before rebooting.
Failure to leave a vc when rebooted. Code works fine if the bot isn't rebooted.
Further details:
The text was updated successfully, but these errors were encountered: