#get url from every attachment in a message

6 messages · Page 1 of 1 (latest)

neat siren
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

neat siren
#

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

glacial perch