From a0bcfa8b67cf8eed6991fc5ca399f1470ec61131 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 3 Apr 2017 22:34:49 +0000 Subject: [PATCH] Fix? --- commands/userinfo/userinfo.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/userinfo/userinfo.js b/commands/userinfo/userinfo.js index 5d00d576..050eb4a3 100644 --- a/commands/userinfo/userinfo.js +++ b/commands/userinfo/userinfo.js @@ -51,7 +51,6 @@ module.exports = class UserInfoCommand extends commando.Command { color = 0x808080; break; } - const userGame = user.presence.game; const embed = new Discord.RichEmbed() .setColor(color) .setThumbnail(user.displayAvatarURL) @@ -66,7 +65,7 @@ module.exports = class UserInfoCommand extends commando.Command { .addField('**Status:**', stat, true) .addField('**Playing:**', - userGame.name || 'None', true); + user.presence.game.name || 'None', true); return message.embed(embed); } };