How can I get the total size on the servers?

example;
((await client.cluster!.fetchClientValues('manager.players.size')) as number[])!.reduce((a, b) => a + b, 0)!;
((await client.cluster!.fetchClientValues('manager.players.size')) as number[])!.reduce((a, b) => a + b, 0)!;
7 Replies
fair-rose
fair-rose•12mo ago
@1Lucas1.apk Eu não sei djs
1Lucas1.apk
1Lucas1.apk•12mo ago
nem eu kkkkkkkkkk we don't know much about djs
Piedra ~
Piedra ~OP•12mo ago
Actually, I need to take the general size of manager.players all guild
let getPlayers = ((await client.cluster!.fetchClientValues(
'manager.players.voices'
)))
const voiceCounts: number[] = getPlayers.map((serverVoices: Record<string, any>) => Object.keys(serverVoices).length);
const player = voiceCounts.reduce((a: any, b: any) => a + b, 0)!;
let getPlayers = ((await client.cluster!.fetchClientValues(
'manager.players.voices'
)))
const voiceCounts: number[] = getPlayers.map((serverVoices: Record<string, any>) => Object.keys(serverVoices).length);
const player = voiceCounts.reduce((a: any, b: any) => a + b, 0)!;
I hope the correct data comes :d
MEE6
MEE6•12mo ago
GG @Piedra ~, you just advanced to level 2!
1Lucas1.apk
1Lucas1.apk•12mo ago
manager.players.all.size?
Piedra ~
Piedra ~OP•12mo ago
but is okey
No description
Piedra ~
Piedra ~OP•12mo ago
i can get data with this now

Did you find this page helpful?