Well, it\'s not a question, it\'s the solution:
in discord.js v12 the code is:
guild.memberCount
for example: message.channel.send(guild.memberCount);