Loop Not behaving correctly.
I have an SQL database were data is being fetched from and it is not properly behaving, the code is ran once every 30 seconds nad after it running 2-3 times it breaks and stops behaving as intended.
Code:
8 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!is this a sql issue or djs issue?
if sql, #other-js-ts
Its a DJS logic issue.
https://sourceb.in/teEFlqF2Ot
So it runs correctly and all, however after it is ran a few times messages stop getting updated from db data that is newly grabbed and also messages that are not in the database are not deleted.
so it is related to your db then?
no the data is all correct that it is geting just the djs side isnt working as intended.
it is discord js related or i would nothave asked here..
well it does because the message isnt deleting and sometimes it isnt being edited...
like, 10 atm