diff --git a/commands/utility/userInfo.js b/commands/utility/userInfo.js index 1280666..98ca1ce 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); - Embed.addBlankField(); + // 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) { - 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); - } + Embed.addBlankField(); + + // 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 }); }