Rate limits are applied on a per-route basis (meaning they can be different for each route called), with the exception of an additional global rate limit spanning across the entire API.
However from looking around on the Discordapp GitHub I found this:
A global 50/10 rate limit (meaning, this is the maximum # of messages a bot can send currently across all of discord every 10 seconds.)
A 5/5 per server rate limit. (meaning you can carry out 5 actions per every 5 seconds)
A 5/5 global DM rate limit (meaning you can carry out 5 DM actions per every 5 seconds)
The rate limit applies to message creation and editing.
So in this case if you are sending more than 5 messages per 5 seconds I would think about slowing down that rate of sending by using a different approach to whatever you are doing.
I would suggest monitoring your requests being sent in ROBLOX, maybe add a print every time one is sent, to ensure you aren’t sending a mass of them unintentionally. If this guarantees you are not sending too many, you need to contact Osyris, or if they are being blocked on Discord’s side, Discord support.
From looking at the source code of the proxy what I’ve found is that Osyris is using an express server to set up routing on his hosting. This basically means that you can set up endpoints at the end of your domain that you can send GET or POST requests to. In this case, he has it set up like so:
"/api/webhooks/:hookId/:hookToken" which is listening for POST requests with the required fields hookId and hookToken in the URL after /api/webhooks/. This means that you could get your own hosting or set it up on Docker as explained in the main post, and use it to send requests.
So considering how the routing is set above, if your web app was located at the web address ‘aspheric.something.com’ you could send POST requests to, for example, http://aspheric.something.com/api/webhooks/1282737272727/162626261616711.
As of recently, Discord no longer bans webhooks coming from Roblox. The osyr.is Discord proxy server will shutdown in one week. Please, switch your osyr.is -based URLs to use Discord instead.
Pretty weird how Discord decided to unban Roblox after banning Roblox for such a long time, are there any more info than knowing it’s unbanned? just being curious
Apparently when Roblox updated it’s HTTP Service, it notified Discord that it would abide by it’s rate limits now. I can’t find anything about it being unbanned either other than this thread. So maybe it just happened behind the scenes or something.
Do we have to set up our system to be able to respect those limits? Or does that respect the limits automatically? (Or apparently I did not read / understand this topic very well?)
If you send requests straight to Discord’s API then you have to make sure that you don’t run out of request budget yourself. They are returned to you via response body of each request IIRC, see the Discord API docs for more info.
I’m suddenly unable to post to discord anymore. Are there any changes on this? I’m getting constant 400 bad requests only when posting to Discord webhooks, though posting to http://httpbin.org/post (the test site provided on the wiki) works perfectly fine.