just a question
I'm using the "status-shard" package and I'm curious: how do I get the cluster ID? The status command shows PID, shard ID, and cluster ID, but how do I retrieve the cluster ID?
23 Replies
<client>.cluster.id
assuing you use ShardingClient instead of Discord.js's Client
https://help.crni.xyz/status-sharding/getting-started/step-by-step
Eyy
Thanks for the quick reply
np
im either blind as hell or this link doesnt tell me much
it tells you how to setup a client
show me your code if you have an issue
and ping me
i have server muted
@Digital how to get all clusters/shards ?
and i can use the shard client utils for it cant i?
as in?
their stats or
wait i figured out
lol
nice
yes, i thought you mean their actual instances
oh ok
that's not really possible since each cluster is different process and you can't send classes via ipc (inter process communication)
got it, also sum sad is that i use the djs client for some stuff and i gottachange to status shard client lel
u could add more fucntions to the shard utils
well show me how you declare your client
like
total shards
total clusters
shard used in that guild
ccluster used in that guild
unless these options are already there and im just blind as hell
total shards and clusters is directly property as you found here
yee but i gotta change the client inside my prefix builder xd
as for guild id and cluster id, they are in ShardingUtils lol
and if i use interaction.client it wont use status shard client
yes, you can just do (interaction.client as YourClientClassWherever).user.id
i can't modify inside of discord.js
im confused
how?
nvm sorry
looks like using (client as ShardingClient) made my bot unable to reply for some ungodly reason
shouldn't
show me the code, screenshot