Answer the question
In order to leave comments, you need to log in
How to make the bot mention the user who told him to execute this or that command?
I need the bot to mention the user who forced him to execute this or that command. For example, the user says: Hi, bot. You need the bot to answer: HI, (User_mention).
Answer the question
In order to leave comments, you need to log in
The mention looks <@user_id>
something like this, it turns out like this:
message.channel.send(`Hi, <@${message.author.id}>`)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question