msg.author.user doesn't exist

This commit is contained in:
2019-04-04 23:16:28 +11:00
parent bf07e5efd6
commit a880ad4231

View File

@@ -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 {