quote: fix pinging

This commit is contained in:
liushuyu 2020-05-02 13:06:09 -06:00
parent 09867e2c0d
commit c0ab384086
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437

View File

@ -6,7 +6,7 @@ export function command (message: discord.Message, reply: string) {
if (reply == null) { if (reply == null) {
replyMessage = message.content.substr(message.content.indexOf(' ') + 1); replyMessage = message.content.substr(message.content.indexOf(' ') + 1);
} else { } else {
replyMessage = `${message.mentions.users.map(user => `${user}`)} ${reply}`; replyMessage = `${message.mentions.users.map(user => `${user.toString()}`)} ${reply}`;
} }
message.channel.send(replyMessage); message.channel.send(replyMessage);