From 2e47f08ff40a3d0cf32ec69c1944cd80a4aa8dd8 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 15 Nov 2019 22:11:24 +0100 Subject: [PATCH] Don't show which platform bot are using since its irrelevent Show if user is a bot --- commands/utility/userInfo.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/commands/utility/userInfo.js b/commands/utility/userInfo.js index 323dcba7..1280666c 100644 --- a/commands/utility/userInfo.js +++ b/commands/utility/userInfo.js @@ -44,12 +44,15 @@ class userInfoCommand extends Command { Embed.addBlankField(); - // Show on which platform they are using discord from - if (user.presence.clientStatus) { + // 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); } + + // 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 if (member.nickname) Embed.addField('Nickname', member.nickname, true);