how do i fix this error which i have no idea of the why its here?

No description
14 Replies
d.js toolkit
d.js toolkit3w 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!
gummi
gummiOP3w ago
No description
Mark
Mark3w ago
You can't delete a message more than once
Retro
Retro3w ago
setInternval means execute on interval (loop)
Mark
Mark3w ago
In the future, please show the full error including stack, not just the message
Retro
Retro3w ago
i think youre looking for setTimeout which means wait x ms
gummi
gummiOP3w ago
oh well, i think thats it yeah why cant it just be called wait() :firSad:
d.js docs
d.js docs3w ago
:node: Timers Promises API The timers/promises API provides an alternative set of timer functions that return Promise objects.
Mark
Mark3w ago
Require setTimeout from there and then define a wait variable as it
gummi
gummiOP3w ago
ill check in a bit if it works, ty no way mark rober whenever i run the wait() the functions below it keep running right? like it doesnt waits for it to end before running
Retro
Retro3w ago
Elaborate, send your code
gummi
gummiOP3w ago
like part 1 of code setTimeout(() => {},) part 2 of the code the part 2 of the code will wait for the setTimeout to run out? or will it run right after part 1?
Retro
Retro3w ago
No. If you want that, refer to what mark said
gummi
gummiOP3w ago
dont really want that :firHappy: thx

Did you find this page helpful?