client.rest.queueRequest()

Does anyone have a example? I can't get it to work
7 Replies
d.js toolkit
d.js toolkit15mo 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! - Marked as resolved by OP
duck
duck15mo ago
for what purpose are you calling this method directly? is there a reason you're not just using get, post, etc?
NotDemonix
NotDemonixOP15mo ago
For sending webhooks without using djs class, someone said to use queueRequest over post Could you please ping me on the next reply 😅
duck
duck15mo ago
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 having
NotDemonix
NotDemonixOP15mo ago
Does it have any ratelimit handling? (webhook create) I won't hit the execute one but idk about create ratelimit
duck
duck15mo ago
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)
NotDemonix
NotDemonixOP15mo ago
I just like to have everything handled But thanks! I will switch to client.rest.post
Want results from more Discord servers?
Add your server