I use it setAvctivity client.user.cache.size in bot activity it showing only one member why??
I want to do total member count in bot activity any one help me plzz
I use it setAvctivity client.user.cache.size in bot activity it showing only one member why??
I want to do total member count in bot activity any one help me plzz
Why its not working tho
And how to do .addField(“Member count”,“client.users.cache.size”)
Like this not working
Yes we can help you. However, first we need a project name or edit link, along with some more code and context. What kind of errors are you seeing?
Its private tho
Make the project public, for now. Is your token in .env?
Yes, it is safe to share your project code.
glitch.com/edit/#!/sizukalatest
I don’t think you should count members by looking at the size of cache, not all users are going to be in the cache. Are you using Eris or Discord.js?
For discord.js
To get the total member count of a server you will use message.guild.memberCount
(according to latest docs).
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.