From a880ad42313f1e24099c2688d154112c37e16c3a Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Thu, 4 Apr 2019 23:16:28 +1100 Subject: [PATCH] msg.author.user doesn't exist --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 94b341c..ee4998b 100644 --- a/index.js +++ b/index.js @@ -123,7 +123,7 @@ function doPMCommand(msg, prefix) { var cmds = client.cachedcommands.filter(cmd => cmd.alias == command); if (cmds.length > 0) { - console.log("CMD:".green + " ".reset + msg.author.user.username.bold + "#".reset + msg.author.user.discriminator.reset + " " + prefix.grey + command.green.bold + " ".reset + msg.suffix + " | PM") + console.log("CMD:".green + " ".reset + msg.author.username.bold + "#".reset + msg.author.discriminator.reset + " " + prefix.grey + command.green.bold + " ".reset + msg.suffix + " | PM") var reqcommand = require('./commands/' + cmds[0].file) msg.react('✅') try {