Getting rate-limited for making a role
I'm currently working on a bot that makes around 4 - 5 roles to play a round of Mafia. Unfortunately, I'm unable to implement my channels / roles - whenever I attempt to make one role, I get a rate limit message in my terminal, let alone make multiple.
I'm not sure what it could be, as only one file is actually concerned with making roles and referencing them and I'm only doing it once. I've tried waiting a few minutes to a few hours to relaunch my bot and I'm still having no luck. After waiting, sometimes one role will be made, sometimes two, sometimes everything will work and sometimes nothing will work. It's a bit frustrating.
Is it possible that I have a lot of requests in some theoretical queue? Or is it something with my codebase?
Relevant snippets below:
start.ts
terminal output
Please let me know if I am missing any relevant information for diagnosing this problem (or if I'm in the wrong server). Thanks! :)1 Reply
- 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!