© 2026 Hedgehog Software, LLC
let files = msg.attachments.map((obj) => new AttachmentBuilder(obj.proxyURL)) console.log(files) channel.send({ content: `xxx`, embeds: [Embed], components: [Buttons], files: files });
[ AttachmentBuilder { attachment: 'https://media.discordapp.net/attachments/1267551776593150105/12 67551842175291496/Screenshot_1.png?ex=66a93325&is=66a7e1a5&hm=6c87f01db84a1c96ea 344fa4775eb54ed5542a554f9e896712b7d9cea0c10c91&', name: undefined, description: undefined }, AttachmentBuilder { attachment: 'https://media.discordapp.net/attachments/1267551776593150105/12 67551842527871068/image.png?ex=66a93325&is=66a7e1a5&hm=3056040ffca4396f5d957f522 71659be379dd00a3cc02811ecb0fb70a7257d65&', name: undefined, description: undefined } ]
Join the Discord to ask follow-up questions and connect with the community
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,666 Members