1
votes

I want to print an embed item list but the empty spaces(blank field titles) between each item are bothering me and making it unnecessarily long. So is there a way to print all the items from an array without having to keep adding new fields?

const list = new Discord.MessageEmbed()
.setTitle('Items')
.setColor('#0099ff')
for (var xc = 0; xc < (items.length-1); xc++)
{
        var item = items[xc];
        list.addField('\u200B',item);
}
msg.channel.send(list);

This is what I have at the moment.

1

1 Answers

0
votes

Maybe set it as the description

list.setDescription(items.join("\n"));