Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
fix(ready listener): fixed users count
Browse files Browse the repository at this point in the history
  • Loading branch information
animafps committed Oct 14, 2021
1 parent a807897 commit 970de7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/listeners/ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '@sapphire/framework'
const dev = process.env.NODE_ENV !== 'production'

export class UserEvent extends Listener<typeof Events.ClientReady> {
export class UserListener extends Listener<typeof Events.ClientReady> {
public constructor(context: PieceContext, options?: ListenerOptions) {
super(context, {
...options,
Expand All @@ -33,7 +33,10 @@ ${pad}[+] Gateway (${this.container.client.user?.username}#${
this.container.client.user?.discriminator
})
${pad}Severs: ${this.container.client.guilds.cache.size}
${pad}Serving: ${this.container.client.users.cache.size} people
${pad}Users: ${this.container.client.guilds.cache.reduce(
(acc, val) => acc + (val.memberCount ?? 0),
0
)}
${dev ? ` ${pad}</> DEVELOPMENT MODE` : ''}
`.trim()
)
Expand Down

0 comments on commit 970de7a

Please sign in to comment.