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,790
  • 6
  • 21
  • 37

1 Answers1

1

You just can use a simple line in v12

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