CFC-Servers / cfc_err_forwarder

Send both server and client Gmod errors to your Discord channel
18 stars 1 forks source link

Needs to respect Discord ratelimits #30

Open brandonsturgeon opened 1 year ago

brandonsturgeon commented 1 year ago

The sender code should read and respect Discord rate-limit Headers to prevent lost webhooks.

Dev notes

In this file: https://github.com/CFC-Servers/cfc_err_forwarder/blob/main/moon/cfc_err_forwarder/discord_interface.moon It needs to return a function that queues the error for sending, and then start a queue processor that sends the errors as fast as the response headers allow it.

brandonsturgeon commented 5 months ago

This is handled in the Lua Rewrite. Will decide if the feature has to wait until then, or if it should be backported sooner.