I want to retrieve all my users of all guilds where my bot is used at.
What i need is a total(global) of these :
presence?.status == "offline")
presence?.status == "online")
presence?.status == "DND")
presence?.status == "bots")
well what i did is this and it returned 0 :
let userCount = message.client.users.cache.filter(member => member.presence?.status == "offline").size
console.log("total",userCount)
If i want to return everyone as a total(global) that works normal:
let userCount = message.client.users.cache.size;
console.log("total",userCount)
any idea how to do this? i’m on v13
regards