Potential mass api usage issues

I have a moderation bot of a sort, and in my use case I have a lot of commands that might do something at a scale maybe out of normal from other bots. For example, create 50 channels at once, send a message to 500 channels at once, modify the permissions of 50 channels at once, delete 5000 messages at once. At once meaning like sequentially but in one command. I'm using sapphire so in theory I should be fine rate limit wise but is there anything I should look out for or avoid doing that discord might have issues with? And especially at scale with it in multiple servers, not sure what would happen if the bot were in 50 servers trying to delete 5k messages each. I haven't had any issues for the past few years with the pretty small amount of servers it's in but I've been refactoring it to scale and want to be prepared before I verify it.
1 Reply
Ravelt
Ravelt17mo ago
My bot helps with running online survivor games. It in a way gameifies the discord platform itself. For example, there is a safari feature where players can "move" through channels where the bot removes perms from a channel and adds to another one, to simulate moving in physical space in real life. The bot will delete all the player messages in their previous channel which could be 5k or none, no real cap on it. Generally speaking I don't think these numbers would be hit in the average case but I do want to account for the possibility.
Want results from more Discord servers?
Add your server