Home > Net >  Code error I'm unsure of what is causing it
Code error I'm unsure of what is causing it

Time:02-28

Alright, I'm a very new coder and I have an error message and I'm unsure of what it is. I've tried a lot of things. I'm unsure of what the issue is, I've checked my spelling but nothing seems to be out of the ordinary. The file I'm trying to make work in particular is the embed file, but there might be errors in the other parts causing errors.

https://imgur.com/a/BG4ppC1

CodePudding user response:

you can use :


message.channel.send({embeds:[/* your embed name goes here */]})

to send the embeds

CodePudding user response:

In the new version, you can't just use message.channel.send(embed) you have to be a little bit more speciic by adding { embeds : []}

message.reply({ embeds : [your_embed_goes_here]})

And if you have multiple embeds :

message.reply({ embeds : [embed1, embed2, embed3]})
  • Related