M
M
MoneySMile2021-06-30 19:45:14
Node.js
MoneySMile, 2021-06-30 19:45:14

How to get all statuses of a user in disrod.js?

I need to get all statuses except offline

I know how to get status online:

let onlineMemberCount = guild.members.cache.filter(member => !member.user.bot && member.presence.status === "online").size;

And how to get all the statuses of Rome offline?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-06-30
@MoneySMile

. . . .filter(member => !member.user.bot && member.presence.status !== "offline")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question