From 01e95813812128f0d8ab5163f24dde19cbf7b78c Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 15 Nov 2019 23:26:16 +0100 Subject: [PATCH] Removed some bad habit i have --- commands/utility/userInfo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/utility/userInfo.js b/commands/utility/userInfo.js index 98ca1ce..2519c4f 100644 --- a/commands/utility/userInfo.js +++ b/commands/utility/userInfo.js @@ -59,9 +59,9 @@ class userInfoCommand extends Command { // 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); + 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 });