Low Rate Limit ceiling?

I’ve started work on a basic Discord.js bot, and I’ve hit rate limits twice during the development workflow. I’m not doing anything that I think is particularly outlandish: - I’ve got 2 events set up: - the first will just acknowledge that the bot has received a message that “@“s them by reacting with 👀 one time - the second is just the ready event - I’ve got two commands set up (both are basic “ping” commands) Yet I’ve been rate limited twice for 45 minutes in the past 24 hours. Am I doing something improperly? This seems like a harsh rate limit policy for the few requests being made.
9 Replies
d.js toolkit
d.js toolkit5mo 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!
quontas
quontas5mo ago
discord.js@14.14.1 node v20.11.0
treble/luna
treble/luna5mo ago
and how do you know its ratelimited
quontas
quontas5mo ago
I’m getting a 429 when trying to log in on my personal account
treble/luna
treble/luna5mo ago
you're using your account token?
quontas
quontas5mo ago
I don’t think so, I’m using the bot key
treble/luna
treble/luna5mo ago
i dont see how your account and bot can be related
quontas
quontas5mo ago
I think it’s an IP rate limit, according to their docs I’m currently responding to this thread via my mobile network, while my home network is IP limited
quontas
quontas5mo ago
https://discord.com/developers/docs/topics/rate-limits#global-rate-limit I suspect I’m hitting the global IP rate limit, but I’m nowhere CLOSE to 50 requests/second
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.