小编Ras*_*onT的帖子

How to save data in the empty Array from message attachments? So I can send more attachments in one message Discord.js

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)

arrays message attachment node.js discord.js

6
推荐指数
1
解决办法
337
查看次数

标签 统计

arrays ×1

attachment ×1

discord.js ×1

message ×1

node.js ×1