M
M
matveyyyyyyyy2020-10-07 20:33:36
Node.js
matveyyyyyyyy, 2020-10-07 20:33:36

How to make the bot able to write embed messages?

For example, to answer the hello command in private messages with embed. There is a code for a small dialogue with the bot. But how to make it respond with embed?

robot.on("message", message => {
  if (message.channel.type === "dm") { // если тип канала === ЛС
  if (message.content === "привет") {
    message.channel.send("дароу")
    }
  }
})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-10-07
@matveyyyyyyyy

before you ask a question - at least google it.
also, check the official tutorial and documentation
for more specifics - this is where the answer to your question lies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question