diff --git a/commands/utility/user.js b/commands/utility/user.js index 61ce102..9c6364f 100755 --- a/commands/utility/user.js +++ b/commands/utility/user.js @@ -22,8 +22,8 @@ module.exports = { title: "User information.", // thumbnail: targetUser.displayAvatarURL({ dynamic: true }), fields: [ - { name: "Username", value: targetUser.username, inline : true }, - { name: "Display name", value: targetUser.globalName, inline : true }, + { name: "Username", value: targetUser.username || "None", inline : true }, + { name: "Display name", value: targetUser.globalName || "None", inline : true }, { name: "Nickname", value: targetMember.nickname || "None", inline : true }, { name: "Avatar", value: `${targetMember.displayAvatarURL({ dynamic: true })}` }, { name: "Joined at", value: ``, inline: true }, @@ -35,7 +35,7 @@ module.exports = { // { name: "Activity", value: targetMember.presence?.activities[0] ? targetMember.presence.activities[0] : "None", inline : true }, { name: "Bot?", value: targetUser.bot, inline : true }, { name: "User Id", value: targetUser.id, inline: true }, - // { name: "Is online?", value: targetUser.presence.status === "online", inline : true }, + { name: "Custom status", value: targetUser.presence || "No status", inline : true }, // { name: "Is dnd?", value: targetUser.presence.status === "dnd", inline : true }, // { name: "Is idle?", value: targetUser.presence.status === "idle", inline : true }, // { name: "Is offline?", value: targetUser.presence.status === "offline", inline : true },