1

My Discord.js bot just got verified for the GUILD_MEMBERS intent so I brought a feature back which shows the total users of the bot but it doesn't quite work as I intend it to.

image example

I am currently using the {client.users.cache.size} property to find the total users.

Can anyone help me out?

node_modules
  • 4,122
  • 4
  • 18
  • 34

1 Answers1

2

You just can use a simple line in v12

${client.guilds.cache.reduce((a, g) => a + g.memberCount, 0)}
SIVOVX
  • 64
  • 4