N
N
Nikita Zaiko2019-08-13 12:00:22
JavaScript
Nikita Zaiko, 2019-08-13 12:00:22

How to mention a user via discord.js in RichEmbed?

Hello.
The user is supposed to be mentioned when sending this embed:
8tJtX4i.png
At the output, I get:
5eR7CKi.png
Please help me, how to correctly mention the user who sends a message to the bot?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Chefranov, 2019-08-13
@Chefranov

message.authoris an object. If you want to get the name of the author, then you need to do this message.author.username, and if you mention it, then like this"<@" + message.author.id + ">"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question