I send messages every 10 seconds
My discord bot sends a rich embedded image to specific server channels every 10 seconds. My bot is pretty large and a lot of people have set this up in their server. I seem to be hitting the discord rate limit a lot and it causes my bot to stop responding on all clusters. I was thinking of switching to using webhooks to send the images instead, but that wouldn't change anything since i'd still be hitting the rate limits.
I cannot really increase the posting time any further, the max I could do is 30, but inevitibly I will stumble across the same problem when we reach the rate limits again.
Can someone confirm if the Discord API rate limit is 1000 api calls per day or something?
What can I potentially do to stop this from happening?
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 OPEach webhook has their own rate limit. You should switch to webhooks
oh perfect
So I would practically never have this problem again?
Yes
fuck, i just got rick rolled...
anyway, thanks for your help