What I currently have:
Right now I have my webhooks all set up fine, if someone joins it messages me and vice versa if they leave. I own a 12K group and as such the game activity can span to over 30+ on weekends.
My issue:
The issue is people can crash and join and leave and be teleported which means my webhook can be spammed with requests - the max logged at a time was around 76 in a single minute which inevitably got my webhook banned.
If I restarted by webhook it would most likely get itself banned again by Discord, I know I could create two webhooks and split the traffic (between joining and leavinfg) however I just want to know is there any way to limit traffic so that it creates a queue out of the webhooks and then fires them every few seconds.
Chances are I’ll just split the traffic between two webhooks, but it would be nice to know if there actually is a way of doing it.
For proper use cases that are not against Discord TOS, yes, you can queue up events yourself and then only send them once every few seconds until the queue is empty. This is trivial to implement.
The moderators we have for the game are looking at accounts which may be suspicious (as we have had cases of exploiting) + general interest of who joins the game the most and to track how long each player has been on the game (so we know who to promote and demote based on activity).