So fortunately my bot is growing rapidly, and I chose to shard. But I am not really familiar with sharding since I've never worked with it, never used it anywhere. How can I basically get a guild count for each shard , so I can make a function and use it on my api and anywhere else I am mentioning any information like bot member count or bot guilds . Especially bot guilds, because I am rewarding top 10 guilds of the bot every month so I need to merge the guild count of the shards (currently I have 2) but with my logic I assume that i will make a function and use a forEach to calculate the guilds .
If someone can provide a few snippets , no need to give me huge explanations , I will understand the snippets. Any little help will be appreciated. Thank you
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
d-Iaa
discord.js - Imagine an app
Support server for discord.js, a Node.js module to interact with Discord's apps API.