Fix Game Name Again

This commit is contained in:
Daniel Odendahl Jr
2017-03-25 05:02:58 +00:00
parent ab796b78ae
commit f80a6e5c54
+4 -1
View File
@@ -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)