Status not sent after dupplicate `ready` event if the bot is single sharded
Closed this issue · 0 comments
ThomasByr commented
I hope this is a "real" bug and not something I did wrong on my side.
The bot have recieved a bunch of dupplicate ready events recently :
INFO discord_compiler_bot::events > [Shard 0] Ready
INFO discord_compiler_bot::events > Skipping duplicate ready event...
but soon after, the status of the bot disappears.
Maybe if the bot is single sharded we still need to resend the status (1) ? It would make sense if Discord client does not update the bot status depending on the shard.
Also, what would happend if all shards recieve a dupplicate ready event ? Since none have the status, will it disappear also ?
(1)
if shard_count + 1 > total_shards_to_spawn {
info!("Skipping duplicate ready event...");
return;
}
in srs/event.rs > impl EventHandler for Handler > ready