#Array of objects into embed fields

7 messages · Page 1 of 1 (latest)

short plinth
#

Hello,

I am having an issue with adding an array of objects to multiple embed fields.
The object in question is comprised of a date, integer one and integer 2 which need to be displayed for every day (different dates).


gloomy remnantBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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
short plinth
#

This is the JSON file I pull info out of and convert to a normal array.


zealous void
#
<Array>.map({attacks, defense, date}) => ({name: `${..} …`, value: …}))
short plinth
#

I would put that inside of the fields:?

zealous void
#

Yes

short plinth
#

Op will try later and mark the post as solved if it works.