discord.js get attachment url

JavaScript
message.attachments.forEach(attachment => {
	const ImageLink = attachment.proxyURL;
	message.channel.send(`\`${ImageLink}\``).catch(error)
});
Source

Also in JavaScript: