Replace blank field with zws field

This commit is contained in:
loicbersier 2020-03-04 12:29:32 +01:00
parent 43ac7e3ce0
commit 010a617ed4
2 changed files with 6 additions and 4 deletions

View file

@ -25,7 +25,7 @@ class ServerCommand extends Command {
.addField('Number of bots', botCount, true) .addField('Number of bots', botCount, true)
.addField('Total number of members', message.guild.memberCount, true) .addField('Total number of members', message.guild.memberCount, true)
.addField('Number of channels', message.guild.channels.size, true) .addField('Number of channels', message.guild.channels.size, true)
.addBlankField() .addField('', '')
.addField('Date when guild created', message.guild.createdAt, true) .addField('Date when guild created', message.guild.createdAt, true)
.addField('Owner', message.guild.owner, true) .addField('Owner', message.guild.owner, true)
.setTimestamp(); .setTimestamp();

View file

@ -30,6 +30,8 @@ class userInfoCommand extends Command {
let member = message.guild.member(user); let member = message.guild.member(user);
console.log(member);
const Embed = this.client.util.embed() const Embed = this.client.util.embed()
.setColor(member.displayHexColor) .setColor(member.displayHexColor)
.setAuthor(`${user.tag} (${user.id})`, user.displayAvatarURL()) .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 // Show since when this user have been boosting the current guild
if (member.premiumSince) Embed.addField('Boosting this guild since', member.premiumSince, true); if (member.premiumSince) Embed.addField('Boosting this guild since', member.premiumSince, true);
Embed.addBlankField(); Embed.addField('', '');
// Show user status // 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? // Is the user a bot?
if (user.bot) Embed.addField('Is a bot?', '✅', true); 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 // Show on which platform they are using discord from if its not a bot
if (user.presence.clientStatus && !user.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.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);