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

Retrieve the list of shards #410

Open
Slasshh opened this issue May 22, 2021 · 3 comments
Open

Retrieve the list of shards #410

Slasshh opened this issue May 22, 2021 · 3 comments
Labels
question Further information is requested

Comments

@Slasshh
Copy link

Slasshh commented May 22, 2021

I would like to know on each shard how many guilds there are

and when I do it with client.shard.fetchClientValues('guilds.cache.size')
it only gives me my 2 cluster and not my 20 shard

And I can't find

@DevYukine
Copy link
Owner

This is not easily doable due to how d.js handles internal sharding, what you can do tho is calculate a average from the shard count and guilds in the cluster instead, why would you need to know how many guilds are on each shard in specific anyway 👀

@DevYukine DevYukine added the question Further information is requested label May 29, 2021
@Slasshh
Copy link
Author

Slasshh commented Jun 7, 2021

This is not easily doable due to how d.js handles internal sharding, what you can do tho is calculate a average from the shard count and guilds in the cluster instead, why would you need to know how many guilds are on each shard in specific anyway 👀

what is d.js (discord.js ?)

@DevYukine
Copy link
Owner

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants