private Task ShardReadyAsync(ShardReadyEventArgs e) { _shardsReady.AddOrUpdate(e.SessionId, true, (shardKey, value) => true); if (_shardsReady.Count == RiasBot.Shards.Count && _shardsReady.All(x => x.Value)) { RiasBot.ShardReady -= ShardReadyAsync; Log.Information("All shards are connected"); RiasBot.GetRequiredService <MuteService>(); var reactionsService = RiasBot.GetRequiredService <ReactionsService>(); reactionsService.WeebUserAgent = $"{RiasBot.CurrentUser.Name}/{Rias.Version}"; reactionsService.AddWeebUserAgent(); } return(Task.CompletedTask); }