How I can fill the empty array with attachments url, so I can send them all of them in one message?
Because when I send use url varaible, same message will be sent several times depending on attachment numbers. This is what I tried so far, but I can't pass through this.. I'm out of ideas.
message.attachments.forEach(attachment => {
const url = attachment.url;
if(url) {
let links = []
Array.from(message.attachments).forEach(links => console.log(links));
const exampleEmbed = new MessageEmbed()
.setColor('#ff0000')
.setAuthor(lastMessage.author.username, message.author.avatarURL({ …Run Code Online (Sandbox Code Playgroud)