#Split Array into single lines

1 messages · Page 1 of 1 (latest)

tribal crown
#
let members = []

        await interaction.guild.members.fetch().then(m => {
            let membro = m.map(u => u.nickname)
            members.push(membro)
        })

        const str = members.join('\n');
        const attachment = new AttachmentBuilder(Buffer.from(str), { name: 'members.txt' });```
Am i wrong? Because `const str = members.join('\n');` worked in v13 in v14 the whole string is in one line
quaint flower
#

not sure how the djs version would matter for that

exotic lark
#

they always blame that

quaint flower
#

also not sure why you don't just map to lines instead of pushing into it