Ian
DIAdiscord.js - Imagine an app
•Created by Ian on 9/3/2024 in #djs-questions
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! :)2 replies