#Help with new embedBuilder's addFields

11 messages · Page 1 of 1 (latest)

white wagon
#

Currently trying to upgrade my bot from v13 to v14.
But while re-writing my embed code, i stumbled upon this.
I cant seem to add any field to planEmbed.
Any idea why it isnt letting me?
Any help / redirection is appreciated!

trim thunder
#

addFields takes rest params

#

so multiple objects, not an array

coarse folio
#

that is not correct, it accepts rest parameters or an array

#

@white wagon are you using typescript?

trim thunder
#

oh well, the documentation sucks, as always

white wagon
coarse folio
#

i wouldnt worry about those warnings then

#

but try removing the array, perhaps they will go away

#

just know that it would work regardless

white wagon
#

Perfect, thanks for the help!