F
F
FlipSize2020-11-11 09:30:45
Node.js
FlipSize, 2020-11-11 09:30:45

How to get all members of a discord.js server?

You need to get all the members of the server that are online. Similarly, I want to do with those who are not online.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2020-11-11
@FlipSize

https://developer.mozilla.org/en-US/docs/Web/JavaS...
https://developer.mozilla.org/en-US/docs/Web/JavaS...
https://discord. js.org/#/docs/main/stable/class/Gu...

A
AlmondPark33609, 2021-10-17
@AlmondPark33609

message.guild.members.cache.filter(m => m.presence.status == 'online').size

Similarly, change online to offline and any other status

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question