Rate limits for /interactions & /webhooks
https://discord.com/developers/docs/interactions/receiving-and-responding#endpoints
On this page it says "The endpoints below are not bound to the application's Global Rate Limit"
Though the @discordjs/rest package is setup to rate limit all /webhooks paths the same so editing interactions and following up gets globally rate limited with the current code.
Would it be recommended to open a Pull Request to fix this in the @discordjs/rest package?
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
5 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.@ckohen
No, technically it's another global rl (and in theory so are normal webhooks), but discord devs can't come to a decisive answer on what we should do, so we play it safe
Ah thanks, do you know if the global limit for these is higher? Either way I think in my case I could just create a separate API and REST instance for doing interactions replies and follow ups. That way they essentially are under their own global limit.
Nope, just another 50 as far as i'm aware. Interaction responses aren't bounded by the global RL in away way btw. As soon as /callback is requested it goes through. So it'd only mater for followups / edits.