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:
No description
8 Replies
d.js toolkit
d.js toolkit14mo ago
- 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!
treble/luna
treble/luna14mo ago
is this a sql issue or djs issue? if sql, #other-js-ts
SolarHosting Partner
Its a DJS logic issue.
d.js docs
d.js docs14mo ago
To share long code snippets, use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks or files.
SolarHosting Partner
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.
treble/luna
treble/luna14mo ago
so it is related to your db then?
SolarHosting Partner
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
Want results from more Discord servers?
Add your server