From f80a6e5c54f137be34267f55c1d8026edee72a64 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 25 Mar 2017 05:02:58 +0000 Subject: [PATCH] Fix Game Name Again --- commands/userinfo/userinfo.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/userinfo/userinfo.js b/commands/userinfo/userinfo.js index f4d40767..bfbc88ec 100644 --- a/commands/userinfo/userinfo.js +++ b/commands/userinfo/userinfo.js @@ -61,10 +61,13 @@ module.exports = class UserInfoCommand extends commando.Command { color = 0x808080; break; } - let userGame = user.presence.game.name; + let userGame; if (!user.presence.game) { userGame = "None"; } + else { + userGame = user.presence.game.name; + } const embed = new Discord.RichEmbed() .setColor(color) .setThumbnail(user.displayAvatarURL)