Send multiple attachments with spoilers at the same time

. I'm trying to send multiple attachments with a spoiler at the same time, this is what I have currently, but on the webhook it only send the first attachment only
3 Replies
d.js toolkit
d.js toolkit4mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
NyR
NyR4mo ago
You re-assign files everytime in your for...of loop, make files an array and push to it
-Carlos👑
-Carlos👑OP4mo ago
let me try that that worked, ty

Did you find this page helpful?