/// <summary> /// Retrieves multiple players their data. /// If a player is not found, it will be excluded from the response. /// </summary> /// <param name="players">The players you want to request. The maximum is 10.</param> /// <returns></returns> public async Task <Player[]> GetPlayersAsync(IEnumerable <PlayerBatchRequest> players) { if (players.Count() > 10) { throw new ArgumentException("You are trying to request too many players, the maximum is 10."); } return(await _api.Post <Player[]>("player/batch", players)); }