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)