forked from Galactic/galactic-bot
listeners for ratelimit & invalid request warnings
This commit is contained in:
parent
d3faf0e722
commit
48a633e308
@ -226,6 +226,14 @@ class DiscordClient extends Client {
|
|||||||
this.logger.status('Shard resumed.');
|
this.logger.status('Shard resumed.');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.eventHooker.hook('invalidRequestWarning', (warning) => {
|
||||||
|
this.logger.warn(`Invalid requests warning:\n${inspect(warning)}`);
|
||||||
|
});
|
||||||
|
|
||||||
|
this.eventHooker.hook('rateLimit', (limit) => {
|
||||||
|
this.logger.debug(`Client hit a rate limit:\n${inspect(limit)}`);
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user