Skip to content

Commit 014fca0

Browse files
authored
fix: revert commit
1 parent 3e159ff commit 014fca0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/Interface/Clients/DiscordIO.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import { ClientFiller } from '../ClientFiller'
99
export default class DiscordIO extends ClientFiller {
1010
get userCount() {
1111
if (!this.client.servers) return undefined
12-
return Object.values(this.client.servers)
12+
return Object.keys(this.client.servers)
13+
.map((id) => this.client.servers[id])
1314
.reduce(
1415
(count: number, guild: AnyObject) => count + guild.member_count,
1516
0

0 commit comments

Comments
 (0)