N
N
nikkkushkaaa2021-01-30 18:49:19
Node.js
nikkkushkaaa, 2021-01-30 18:49:19

How to send a message along with embed?

Hello, when a user connects to the Discord server, I send embed and tag the user, but the tag is a separate message and embed is a different message. I saw in other servers that you can make 1 message, do not tell me how?

Here is the code:

robot.on('guildMemberAdd', member => {
  
let embed = new Discord.MessageEmbed() 
.setTitle(`Name`) // в тайтле имя автора 
.setThumbnail("Avatar ")
embed.setDescription("text")
.setColor('#00BDFF') 
robot.channels.cache.get("803373673154740276").send('<@' + member.user.id + '>');
robot.channels.cache.get("803373673154740276").send(embed);
})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-01-30
@nikkkushkaaa

<channel>.send("сообщение", { embed: конструктор_embed'a })

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question