Im only getting online members by specific role

Im only getting online members i want to get all members by specific role please let me know how to fix this below is my code https://srcshare.io/65f7f1aab3951fe0e149b067
SrcShare
Easily share your source code with other developers.
4 Replies
d.js toolkit
d.js toolkit8mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
monbrey
monbrey8mo ago
fetch all members into the cache first
d.js docs
d.js docs8mo ago
:method: GuildMemberManager#fetch() Fetches member(s) from a guild.
Aphelious
ApheliousOP8mo ago
@ʎǝɹquoɯ is it like Can u check line 13 and 15 now is it like that ?
Want results from more Discord servers?
Add your server