#Help over EmbedBuilder

1 messages · Page 1 of 1 (latest)

fierce epoch
#

here it is

.addFields([
                  {name: `\`Offender :\``, value: `${offender.user.tag} (${offender.user.id})`} ,
                    {name: `\`Reason :\``, value: `${reason}`} ,
                    {name: `\`Moderator :\``, value: `${message.author.tag} (${message.author.id})`}
                  ])
#

thanks for the help btw

snow fox
#

My pleasure

#

its what we are here for :))

high fog
#

Should work, what's wrong actually?

snow fox
#

Yea i think this is fully correct code

#

these threads are a godsent with no cooldown omg

high fog
#

I mean show the error u get

fierce epoch
#

it's keep telling me that :
"Argument type [{name: string, value: string}, {name: string, value: string}, {name: string, value: string}] is not assignable to parameter type any   Type ({name: string, value: string} | {name: string, value: string} | {name: string, value: string})[] is not assignable to type any "

snow fox
#

uhh

#

can you show how you build the embed

#

and you are sure the variables you are using are not null right?

#

or undef

fierce epoch
snow fox
#

Ohh

#

hold up

#

make sure everything is a string

fierce epoch
#

this embed worked on v13

snow fox
#

hmm

#

issue is i dont have a v14 bot myself atm

#

just read all the docs carefully and use v13 full time

high fog
#

It seems correct still doesn't work which is weird

snow fox
#

Check if the variables arent empty strings maybe

#

but that should be another error

fierce epoch
snow fox
#

nono its more that that is all i did

high fog
#

Also it should be .setColor(0xff0000)

snow fox
#

lol

fierce epoch
#

dang so much thing to change

snow fox
#

sidenote

high fog
#

And dynamic options doesn't exist on displayAvatarURL() method

snow fox
high fog
#

It's dynamic by default

fierce epoch
fierce epoch
#

I am completely lost since it's my first bot

snow fox
#

idk if thats allowed in the name header

fierce epoch
#

doesn't really changed anything but I will try like that

snow fox
#

it would change how the string is loaded

#

potentially

fierce epoch
#

oh ok I see

snow fox
#

that markup may not be allowed in the name part but if it worked in v13 and theres no mention of it in the update guide should be fine

fierce epoch
#

thanks so much for the help I will try and reach you again if I need help again ^^

snow fox
#

Yea feel free to!

high fog
#

So ``` was causing the problem?

lean sphinx
#

Just stumbled upon this thread.
I am having the same problem, but im not using any fancy markdown

fierce epoch
#

still don't know actually, I tryed to launch my bot, but a lot of other errors ocured....
So I have to search for the other errors first.....

high fog
snow fox
fierce epoch
#

^^

magic swallow
snow fox
#

didnt know that was a thing

fierce epoch
#

ah yes, forgot to tell you
thanks WebStorm

lean sphinx
#

Seems like you can simply ignore the warning

#

Since it's just that
a warning

snow fox
#

It does send to the channel?

lean sphinx
snow fox
#

cool

fierce epoch
#

ok so here's the news, this is as RedGaming said, it's only a weak warning so we can ignore that, the embed displays correctly