how would you go about logging shard creation in sapphire?
I understand that shards are auto created by default, how would I go about logging it? Does anyone have a bot on github that could show an example? i'm more of a visual learner :)
Solution:Jump to solution
Shards are entirely managed by DiscordJS. Sapphire doesn't do anything shard related.
DiscordJS has several event emitters that you can listen to using Sapphire to get information about shards:
https://github.com/sapphiredev/gemboard/tree/main/src/listeners/shard/...
2 Replies
Solution
Shards are entirely managed by DiscordJS. Sapphire doesn't do anything shard related.
DiscordJS has several event emitters that you can listen to using Sapphire to get information about shards:
https://github.com/sapphiredev/gemboard/tree/main/src/listeners/shard/
Other than that you just provide
shards: 'auto'
in your client options, again, a DJS option.that repo is exactly what I was looking for. Thanks!