memberCount filter only Users

How do I filter out the bots in this code so that only users are displayed?
module.exports = {
name: 'ready',
async execute(client) {

setInterval(async () => {
let membersCount = client.guilds.cache.map(guild => guild.memberCount).reduce((a, b) => a + b, 0)
await client.user.setPresence({
activities: [{
name: `mit ${membersCount} usern`,
type: ActivityType.Playing
}],
status: "online"
})
}, 1000 * 60 * 10);
}
}
module.exports = {
name: 'ready',
async execute(client) {

setInterval(async () => {
let membersCount = client.guilds.cache.map(guild => guild.memberCount).reduce((a, b) => a + b, 0)
await client.user.setPresence({
activities: [{
name: `mit ${membersCount} usern`,
type: ActivityType.Playing
}],
status: "online"
})
}, 1000 * 60 * 10);
}
}
1 Reply
Knabbiii ♡ ˚₊‧⁺˖
Yea you're probably right hahaa
Want results from more Discord servers?
Add your server