A
A
anubis4652020-03-05 13:01:18
JavaScript
anubis465, 2020-03-05 13:01:18

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

1 answer(s)
C
CatCatcher, 2020-03-05
@anubis465

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 question

Ask a Question

731 491 924 answers to any question