Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method to fetch all members on 10k+ guilds #1398

Open
VinalDugo opened this issue Dec 18, 2024 · 3 comments
Open

Method to fetch all members on 10k+ guilds #1398

VinalDugo opened this issue Dec 18, 2024 · 3 comments
Labels
Feature Request a new feature

Comments

@VinalDugo
Copy link

Which package is the feature request for?

The core library

Feature

I want to fetch all members of a very large guild but i can't find a way to bypass the GuildMembersManager.fetch() 10k members limit.

I found a lot of solutions on internet but none of them work.

If any of you have any advices on how to do this, I'll be grateful

code exemple of basic fetch with normal 10k limit

client.on('ready', async () => {
   console.log(`seflbot is ready!`);
   const guild = client.guilds.cache.get(guildId);
   console.log(`${guild.memberCount} Member on the server`);
   const fetchedMembers = await guild.members.fetch();
   console.log(`${fetchedMembers.size} Member fetched`)
})

result:

seflbot is ready!
171071 Member on the server
9999 Member fetched

Ideal solution or implementation

A method or indication on how to fetch more than 10k members ?

Alternative solutions or implementations

No response

Other context

PS: Not really a feature but no other options

@VinalDugo VinalDugo added the Feature Request a new feature label Dec 18, 2024
@diegopzz
Copy link

Maybe scrape them using websockets? You can get all online members

@VinalDugo
Copy link
Author

Yeah but i would like to have all members, including offline

@xvlx
Copy link

xvlx commented Dec 20, 2024

Yeah but i would like to have all members, including offline

You can't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request a new feature
Projects
None yet
Development

No branches or pull requests

3 participants