mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
refactor: update command and event handling, improve logging, and enhance argument validation, add client inheritance
This commit is contained in:
@@ -41,7 +41,7 @@ export class UnicordDiscordAPI {
|
||||
const limitBucket = response.headers.get('X-RateLimit-Bucket');
|
||||
|
||||
// Log rate limit info for debugging
|
||||
log(`Rate Limit: ${remaining}/${limit} - Reset: ${reset} (${resetSeconds}s) - Bucket: ${limitBucket}`);
|
||||
log(`Rate Limit: ${remaining}/${limit} - Reset: ${resetSeconds}s - Bucket: ${limitBucket}`);
|
||||
|
||||
// If status is 429, we are being rate limited
|
||||
if (response.status === 429) {
|
||||
|
||||
Reference in New Issue
Block a user