From 88dbd91e18a5784cf549c44ad58c68bd50d0bb99 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 15 Nov 2019 22:13:33 +0100 Subject: [PATCH] Changeed the order --- commands/utility/userInfo.js | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/commands/utility/userInfo.js b/commands/utility/userInfo.js index 1280666c..98ca1ce7 100644 --- a/commands/utility/userInfo.js +++ b/commands/utility/userInfo.js @@ -39,17 +39,14 @@ class userInfoCommand extends Command { .addField('Date when account created', user.createdAt, true) .setTimestamp(); - // Show user status - if (user.presence.activity) Embed.addField('Presence', user.presence.activity, true); + + // Show since when this user have been boosting the current guild + if (member.premiumSince) Embed.addField('Boosting this guild since', member.premiumSince, true); Embed.addBlankField(); - - // Show on which platform they are using discord from if its not a bot - if (user.presence.clientStatus && !user.bot) { - if (user.presence.clientStatus['mobile']) Embed.addField('Using discord on', '📱 ' + user.presence.clientStatus['mobile'], true); - if (user.presence.clientStatus['desktop']) Embed.addField('Using discord on', '💻 ' + user.presence.clientStatus['desktop'], true); - if (user.presence.clientStatus['web']) Embed.addField('Using discord on', '☁️ ' + user.presence.clientStatus['web'], true); - } + + // Show user status + if (user.presence.activity) Embed.addField('Presence', user.presence.activity, true); // Is the user a bot? if (user.bot) Embed.addField('Is a bot?', '✅', true); else if (!user.bot) Embed.addField('Is a bot?', '❌', true); @@ -58,8 +55,14 @@ class userInfoCommand extends Command { if (member.nickname) Embed.addField('Nickname', member.nickname, true); // Show user locale ( i have no idea what it is ) https://discord.js.org/#/docs/main/master/class/User?scrollTo=locale if (user.locale) Embed.addField('Locale settings', user.locale, true); - // Show since when this user have been boosting the current guild - if (member.premiumSince) Embed.addField('Boosting this guild since', member.premiumSince, true); + + // Show on which platform they are using discord from if its not a bot + if (user.presence.clientStatus && !user.bot) { + Embed.addBlankField(); + if (user.presence.clientStatus['mobile']) Embed.addField('Using discord on', '📱 ' + user.presence.clientStatus['mobile'], true); + if (user.presence.clientStatus['desktop']) Embed.addField('Using discord on', '💻 ' + user.presence.clientStatus['desktop'], true); + if (user.presence.clientStatus['web']) Embed.addField('Using discord on', '☁️ ' + user.presence.clientStatus['web'], true); + } return message.channel.send({ embed: Embed }); }