I have a list of files that I’m retrieving from Drive:
const list = await drive.files.list({
q: `parents in '${process.env.DRIVE_DIR}' and name contains 'test_'`,
spaces: 'drive',
fields: 'files(id, mimeType, webViewLink)'
})
After getting the files I want to send embed messages with the image from Drive:
const embed = new MessageEmbed()
.setColor('#6adada')
.setTitle('Test')
.setImage(list.data.files[index].webViewLink)
message.channel.send({embeds: })
I checked all permission on Google Drive and they are correct, if I access the link as a guest I can see the image in the browser. Is there something that I’m missing? Thanks in advance.