members.fetch limits

let fetched = await guild.members.fetch({
limit: 0,
force: true,
withPresences: false
});
let fetched = await guild.members.fetch({
limit: 0,
force: true,
withPresences: false
});
can i with this get 10k users? If not, what is the best way to do it then?
7 Replies
d.js toolkit
d.js toolkit5mo 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!
edocsil
edocsil5mo ago
1. Yes it would work. Just make sure you have the GuildMembers intent. 2. The options you have are redundant btw. The limit and withPresences you have are default, and there is no force option since fetching all members always skips the cache.
Amgelo
Amgelo5mo ago
I think a better question would be why you need 10k users though
ChickenStrips05
ChickenStrips055mo ago
👍
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
ChickenStrips05
ChickenStrips055mo ago
my bad king
R4mBLe_
R4mBLe_OP5mo ago
thanks))))

Did you find this page helpful?