Closed rvddesign closed 7 years ago
can you check the version using npm list discord.js
(i'm suspecting v8), also feel free to join us for quicker support here
Version displayed appears to be v8.0.0
-- discord.js@8.0.0 (git://github.com/hydrabolt/discord.js.git#422fffdbfb4cc17
7a4d98b5c4a1a473fad52663c)
well as much as i hate to say this, v8 is not supported anymore, and there have been large changes in how the api works. I would say your best bet is updating to the latest version, which is v10. you can find some docs here. I should also warn you that in the update from v8 => v9 we changed the lib to OOP.
Hm, yeah.. there are however some large changes breaking some important features the current bot is able to do with v8, that's why I hadn't updated yet. It was actually running fine and without problems until recently, and since it appears to only be affecting mainly one of the bots (the other two had only showed the same issue once or twice, while this is very frequent), I thought I'd check.
Thanks anyways
Running on an older version of Discord (not sure where to check the version number), however recently one of the hosted bots ends up disconnecting and reconnecting itself many times over using the following piece of code:
And eventually (or straight away when manually restarting it) it will display the following error message on the console:
It appears to be frequently affecting one of the first bots we wrote, but doesn't appear to affect the later ones which were written in a similar fashion and are running on the same version. Running 3 of them at the same time, and they never had this issue before, until recently. How could I resolve this, or was something changed in the Discord APIs?
I couldn't find any information about it, so I thought I'd drop this here.