Sigma🇦🇱
DIAdiscord.js - Imagine an app
•Created by Sigma🇦🇱 on 1/19/2024 in #djs-questions
Shard & Guilds
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
7 replies