add route to ratelimit log
Change-Id: I4f2b7ecaa0e045ab7dbdee79adc67c1e86c08189
Reviewed-on: https://git.clicks.codes/c/coded/EmojiUploader/+/289
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Samuel Shuert <coded@clicks.codes>
diff --git a/index.ts b/index.ts
index 8b3c2f6..7ce85d1 100644
--- a/index.ts
+++ b/index.ts
@@ -38,6 +38,7 @@
client.rest.on("rateLimited", rateLimitData => {
console.table({
Global: rateLimitData.global,
+ Endpoint: rateLimitData.route,
Limit: rateLimitData.limit,
TimeToRetry: `${Math.floor((rateLimitData.retryAfter / 1000) / 60)}M ${Math.floor((rateLimitData.retryAfter / 1000) % 60)}S`
});