how do i fix this error which i have no idea of the why its here?
14 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!You can't delete a message more than once
setInternval means execute on interval (loop)
In the future, please show the full error including stack, not just the message
i think youre looking for setTimeout which means wait x ms
oh well, i think thats it yeah
why cant it just be called wait() :firSad:
:node:
Timers Promises API
The timers/promises API provides an alternative set of timer functions that return Promise objects.Require setTimeout from there and then define a wait variable as it
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
Elaborate, send your code
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?
No. If you want that, refer to what mark said
dont really want that :firHappy:
thx