Different Way of Calculating User Game

This commit is contained in:
Daniel Odendahl Jr
2017-04-05 18:35:06 +00:00
parent 74001ef5a8
commit 410b41b168
+1 -7
View File
@@ -51,13 +51,7 @@ module.exports = class UserInfoCommand extends commando.Command {
color = 0x808080;
break;
}
let userGame;
if (!user.presence.game) {
userGame = 'None';
}
else {
userGame = user.presence.game.name;
}
const userGame = user.presence.game ? user.presence.game.name : 'None';
const embed = new Discord.RichEmbed()
.setColor(color)
.setThumbnail(user.displayAvatarURL)