We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e159ff commit 014fca0Copy full SHA for 014fca0
src/Interface/Clients/DiscordIO.ts
@@ -9,7 +9,8 @@ import { ClientFiller } from '../ClientFiller'
9
export default class DiscordIO extends ClientFiller {
10
get userCount() {
11
if (!this.client.servers) return undefined
12
- return Object.values(this.client.servers)
+ return Object.keys(this.client.servers)
13
+ .map((id) => this.client.servers[id])
14
.reduce(
15
(count: number, guild: AnyObject) => count + guild.member_count,
16
0
0 commit comments