From 5840d6392a0e9b8c3cc7d633c448459421605454 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 7 Mar 2020 18:03:54 +0100 Subject: [PATCH] more detail for presence --- commands/utility/userInfo.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/utility/userInfo.js b/commands/utility/userInfo.js index 9b0e500d..5c49cbe8 100644 --- a/commands/utility/userInfo.js +++ b/commands/utility/userInfo.js @@ -30,8 +30,6 @@ class userInfoCommand extends Command { let member = message.guild.member(user); - console.log(member); - const Embed = this.client.util.embed() .setColor(member.displayHexColor) .setAuthor(`${user.tag} (${user.id})`, user.displayAvatarURL()) @@ -47,7 +45,11 @@ class userInfoCommand extends Command { Embed.addField('​', '​'); // Show user status - if (user.presence.activities[0]) Embed.addField('Presence', user.presence.activities[0], true); + if (user.presence.activities[0]) { + Embed.addField('Presence', user.presence.activities[0], true); + if (user.presence.activities[0].details) Embed.addField('​', user.presence.activities[0].details, true); + if (user.presence.activities[0].state) Embed.addField('​', user.presence.activities[0].state, true); + } // Is the user a bot? if (user.bot) Embed.addField('Is a bot?', '✅', true);