#How to combine things into a embed.

11 messages · Page 1 of 1 (latest)

leaden valley
#

I am making a warning system and want to send all the active warnings a user has, how would I combine them all into 1 embed? (I know this is more of a js questions and not discord.js but this is the best place to go)

lyric kestrel
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

rugged salmon
#

@leaden valley Just combine them all into one embed. You can concatenate strings with +

leaden valley
rugged salmon
#

Loop

leaden valley
#

Would that be good you think?

rugged salmon
#

The forEach won't do anything

#

Maybe you mean .map and .join?

leaden valley
neon deltaBOT
#

mdn Array.prototype.map()
The map() method creates a new array populated with the results of calling a provided function on every element in the calling array.