forked from Supositware/Haha-Yes
Changeed the order
This commit is contained in:
parent
2e47f08ff4
commit
88dbd91e18
1 changed files with 14 additions and 11 deletions
|
@ -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 });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue