#get url from every attachment in a message
6 messages · Page 1 of 1 (latest)
[email protected]
node.js v18.12.1
ok i just realized how to do it
if (message.attachments.size > 0){
message.attachments.forEach(function (value, i) {
console.log(`${i}: ${value.url}`)
});
}```
the normal for loop wasnt working
It working