client.rest.queueRequest()
Does anyone have a example? I can't get it to work
7 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 OPfor what purpose are you calling this method directly?
is there a reason you're not just using
get
, post
, etc?For sending webhooks without using djs class, someone said to use queueRequest over post
Could you please ping me on the next reply 😅
it's perfectly acceptable to use
<REST>.post()
even for executing a webhook
that being said, it would be hard to diagnose an issue without seeing any code or even a description of what issues you're havingDoes it have any ratelimit handling?
(webhook create)
I won't hit the execute one but idk about create ratelimit
it will handle any 429s received, but why exactly are you creating so many webhooks that you'd be worried about hitting the rate limit?
(ping because you previously asked @notdemonix)
I just like to have everything handled
But thanks!
I will switch to client.rest.post