I’m very new to coding and, as my first “big” project, attempted to create a music bot in discord. I’m currently running into the issue that the bot regularly gets rate limited despite not being used by a lot of users (300 servers). I’m not sure what parts of my code I can change/optimize to make fewer API calls and still have all my functionalities remain the same. I’m hoping someone more experienced can give me a header here. Thanks!
This handles all of the playback functionalities and utilizes the most API calls
This pulls all extensions and starts the bot
Noah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.