I am trying to get the image file URL from the Google Drive API. Not the webViewLink or webContentLink.
The backstory doesn't really matter to the issue but it will help explain the situation. I am making a Discord bot in Node.js and Discord doesn't follow redirects, so I need something that Discord will recognize as a URL with a raw image file. I have tried experimenting with other methods such as trying to send a base64 file, but a image file URL would be best.
I have seen the other StackOverflow thread with a similar topic, but the solutions there don't manage to achieve what I think the author was intending.
Also, I said Discord can't follow redirects, but I could potentially do it server-side, if there is a solution that works.