feat(bot): print any rate limit headers received on interactions routes
This commit is contained in:
parent
580b4dfe7b
commit
3f62f89e18
@ -60,6 +60,9 @@ public class Ratelimiter: IDisposable
|
|||||||
if (!headers.HasRatelimitInfo)
|
if (!headers.HasRatelimitInfo)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (endpoint.Contains("interactions"))
|
||||||
|
_logger.Information($"Discord debug: got rate limit headers for interaction endpoint: global? {headers.Global}, limit: {headers.Limit}, remaining: {headers.Remaining}, reset: {headers.Reset?.ToUnixTimeSeconds()}, reset_after: {headers.ResetAfter?.TotalSeconds}, bucket: {headers.Bucket}");
|
||||||
|
|
||||||
// TODO: properly calculate server time?
|
// TODO: properly calculate server time?
|
||||||
if (headers.Global)
|
if (headers.Global)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user