fix: reuse shardmanager#latency

This commit is contained in:
MARCROCK22 2024-12-26 23:16:19 -04:00
parent 00d5dcdaa7
commit 24c2749b15

View File

@ -55,11 +55,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
}
get latency() {
let acc = 0;
this.gateway.forEach(s => (acc += s.latency));
return acc / this.gateway.size;
return this.gateway.latency;
}
async loadEvents(dir?: string) {