Don't show which platform bot are using since its irrelevent
Show if user is a bot
This commit is contained in:
parent
0c6d3523f5
commit
2e47f08ff4
1 changed files with 5 additions and 2 deletions
|
@ -44,13 +44,16 @@ class userInfoCommand extends Command {
|
||||||
|
|
||||||
Embed.addBlankField();
|
Embed.addBlankField();
|
||||||
|
|
||||||
// Show on which platform they are using discord from
|
// Show on which platform they are using discord from if its not a bot
|
||||||
if (user.presence.clientStatus) {
|
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['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['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);
|
if (user.presence.clientStatus['web']) Embed.addField('Using discord on', '☁️ ' + user.presence.clientStatus['web'], 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);
|
||||||
|
|
||||||
// Show guild nickname
|
// Show guild nickname
|
||||||
if (member.nickname) Embed.addField('Nickname', member.nickname, true);
|
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
|
// Show user locale ( i have no idea what it is ) https://discord.js.org/#/docs/main/master/class/User?scrollTo=locale
|
||||||
|
|
Loading…
Reference in a new issue