mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix Game Name Again
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user