How can we get which user used a command, followed by replying with a message.
I want the reply message content settings like this:
message.reply({content: message.reference.content});
I'm pretty sure you can get the messages author using the paramater message.author
.
execute(message, args) {
message.channel.send(`Hello, ${message.author}!`);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.