Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord.js get attachment url

message.attachments.forEach(attachment => {
	const ImageLink = attachment.proxyURL;
	message.channel.send(``${ImageLink}``).catch(error)
});
 
PREVIOUS NEXT
Tagged: #attachment #url
ADD COMMENT
Topic
Name
5+7 =