Does djs/rest just wait until the cf ban is over?
What I exactly mean with this is that I checked the source of djs/rest and notice that I only find a wait until its unblocked again?
Is this true and if yes is there a way that rest dont wait and just stop all requests until its unblocked again?
6 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Post the full error stack trace, not just the top part!
- Show your code!
- Explain what exactly your issue is.
- Not a discord.js issue? Check out #useful-servers.
- Issue solved? Press the button!GitHub
discord.js/packages/rest/src/lib/handlers/SequentialHandler.ts at 3...
A powerful JavaScript library for interacting with the Discord API - discordjs/discord.js
I don't think /rest handles cf bans. That just waits the remaining time of the rate limit.
Yeah but the cf ban sends a remaining time too in the header and as I see rest checks this 🤔 or do I just oversee something
cf bans aren't 429 iirc
they are
I mean the status code is 429 of the response
ahh thanks thats exactly what I tried to find 👍