From 010a617ed40144aa66e9505e4f8acc4048e31ad1 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 4 Mar 2020 12:29:32 +0100 Subject: [PATCH] Replace blank field with zws field --- commands/utility/server.js | 2 +- commands/utility/userInfo.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/commands/utility/server.js b/commands/utility/server.js index 29c87193..c4ffcad5 100644 --- a/commands/utility/server.js +++ b/commands/utility/server.js @@ -25,7 +25,7 @@ class ServerCommand extends Command { .addField('Number of bots', botCount, true) .addField('Total number of members', message.guild.memberCount, true) .addField('Number of channels', message.guild.channels.size, true) - .addBlankField() + .addField('​', '​') .addField('Date when guild created', message.guild.createdAt, true) .addField('Owner', message.guild.owner, true) .setTimestamp(); diff --git a/commands/utility/userInfo.js b/commands/utility/userInfo.js index facb9855..22aa5dc6 100644 --- a/commands/utility/userInfo.js +++ b/commands/utility/userInfo.js @@ -30,6 +30,8 @@ class userInfoCommand extends Command { let member = message.guild.member(user); + console.log(member); + const Embed = this.client.util.embed() .setColor(member.displayHexColor) .setAuthor(`${user.tag} (${user.id})`, user.displayAvatarURL()) @@ -42,10 +44,10 @@ class userInfoCommand extends Command { // 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(); + Embed.addField('​', '​'); // Show user status - if (user.presence.activity) Embed.addField('Presence', user.presence.activity, true); + if (user.presence.activity) Embed.addField('Presence', user.presence.activities[0], true); // Is the user a bot? if (user.bot) Embed.addField('Is a bot?', '✅', true); @@ -57,7 +59,7 @@ 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(); + Embed.addField('​', '​'); 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);