1
0
Fork 0

Replace blank field with zws field

akairo
loicbersier 4 years ago
parent 43ac7e3ce0
commit 010a617ed4

@ -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();

@ -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);

Loading…
Cancel
Save