Skip to main content

I am looking to be able to attach images via direct image url to a discord message, but not sure how to achieve this with Zapier.

This is easily achievable for a plain discord bot by simply doing something like this: 

exports.run = (client, message, args) => {
message.channel.send({ files: "https://i.redd.it/5ywaao2qstxd1.jpg"]});
}

However sending messages with discord only convert everything in the message content into a string that can’t be encoded. Sending “{ files: l"https://i.redd.it/5ywaao2qstxd1.jpg"]}” will just send itself without doing any processing.

I am unsure how to achieve this in discord custom actions since it seems to require authentication of the bot token, which obviously is managed by Zapier(thus i do not have it)

Be the first to reply!

Reply