Is the promise rejected when a REST.post request fails?
I'm doing something like this and I'm wondering in which case the promise is rejected (when the body and all stuff is correct).
Is the promise rejected when the HTTP status code is not 2xx ? Is there a Type I can use?
5 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!
- ✅
Marked as resolved by OPIs that the resolved or the rejected result?
Unknown User•5d ago
Message Not Public
Sign In & Join Server To View
ai, okay
Ty all