I’ve been trying to find the exact number of requests per minute regarding webhooks, but can’t find anything.
If anyone has an idea on this, I’d like to hear it!
(What I found was a limit of 30 requests per channel using webhooks, which seems a bit low to me for some reason).
Since to communicate with discord webhooks you need to use HTTPService you need to respect the limit of requests of HTTPService which is 500 requests per minute and the limit for discord webhooks is 50 requests per second.
You can read more on the official discord documentation which you can find on the Discord developer portal
Hmm, I assume that is right. The webhook does have a BOT tag so that’s interesting.
What’s more interesting is the amount of requests you can actually send in a minute, which would be 3,000
Actually they are 500 because sending requests to discord webhooks requires the use of the roblox HTTPService which allows only 500 requests per minute
In that case you won’t reach that amount of requests unless you ban all the players from the game, also making a big amount of requests impacts on the game in terms of performances (lag)
No. You really should not use Discord as a ban logger. Discord and webhooks are not made for storing data and it’s against their ToS to use their service like that. There are other alternatives you should be looking for.
Check this post out. It explains everything in details and mentions that:
They have the right to reject your game’s servers from using webhooks if they see you are misusing it, which is what happened for Roblox as a whole because of gross misuse of webhooks.
The webhook has rate-limitations of 30 messages/minute, and when the requests are rapidly sent in a short amount of time (about 10 in a few seconds or something). When you exceed the rate limitations, the response will return a status code 429 with a JSON body. See their documentation - it talks about the bot’s restrictions, therefore it’s not mentioned there, but everything else mentioned can be found in the HTTP response.
I am not storing data, I just want my logs in the Discord server, I also have logs in my datastore so Discord is not needed, yet something extra that could be useful.
Special pleading fallacy. Your friends misusing Discord’s API has nothing to do with Discord frowning on using webhooks for logging/analytics. There are dedicated services out there that you can and should be using. More specifically you should be looking at databases if what you want is to store and comb a list of users banned from your experience as well as the ban details.
Roblox developers attempting to make logging services was a major contribution to Discord blocking the Roblox UserAgent entirely from sending requests for a while 3 years ago, especially because a lot of those webhook models were poorly made and sent invalid requests en masse. They are more lenient now however your specific webhook may be deleted if it is found in violation of Discord’s policies.
We’re not staff of either platform so we can’t authoritatively interpret any details within their policies or the like. You are welcome to contact Discord Support for an answer here, wrt “send me a link to Discord’s ToS saying you can’t log, then I won’t”.