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
{{ message }}
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.
Calling bot.connect() in a timeout after the bot has been disconnected doesn't reconnect it back. It can still write messages to the server but not receive.
Not sure if that is the normal behaviour due to the discord protocols, but it can be quite mystic trying to figure out why the bot wasn't reconnecting.
// Automatically reconnect if the bot disconnects due to inactivitybot.on('disconnect',function(erMsg,code){setTimeout(()=>{bot.connect();},1000);});
The text was updated successfully, but these errors were encountered:
Calling bot.connect() in a timeout after the bot has been disconnected doesn't reconnect it back. It can still write messages to the server but not receive.
Not sure if that is the normal behaviour due to the discord protocols, but it can be quite mystic trying to figure out why the bot wasn't reconnecting.
The text was updated successfully, but these errors were encountered: