serenity
serenity copied to clipboard
Event for when all shards are ready
Wasn't sure how to implement this so I'm putting it here in an issue so perhaps someone else can pick it up or explain how to implement it.
Hi!
I have this implemented, here's the link below for reference.
https://github.com/Headline/discord-compiler-bot/blob/80a615b74ce1295e475bb60c791d29a924d9bf07/src/events.rs#L245-L261
Do you think you could work on adding this event directly into serenity?
Do you think you could work on adding this event directly into serenity?
It's really up to the maintainers to decide if they'd want such an event. I'd implement it if green lit
What would happen in the case that (with 2 shards)
Shard 0: Ready Shard 0: Disconnects Shard 1: Ready Shard 0: Ready (again)?
Or even if, after a while of running, a shard disconnects and reconnects, would this trigger the callback again?