forked from Supositware/Haha-Yes
Show user roles
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
fce771cc6a
commit
22acd163be
1 changed files with 13 additions and 13 deletions
|
@ -38,15 +38,6 @@ class userInfoCommand extends Command {
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (member) {
|
|
||||||
// Show since when this user have been boosting the current guild
|
|
||||||
if (member.premiumSince) Embed.addField('Boosting this guild since', member.premiumSince, true);
|
|
||||||
// Show guild nickname
|
|
||||||
if (member.nickname) Embed.addField('Nickname', member.nickname, true);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Embed.addField('', '');
|
Embed.addField('', '');
|
||||||
|
|
||||||
// Show user status
|
// Show user status
|
||||||
|
@ -69,6 +60,15 @@ class userInfoCommand extends Command {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (member) {
|
||||||
|
// Show since when this user have been boosting the current guild
|
||||||
|
if (member.premiumSince) Embed.addField('Boosting this guild since', member.premiumSince, true);
|
||||||
|
// Show guild nickname
|
||||||
|
if (member.nickname) Embed.addField('Nickname', member.nickname, true);
|
||||||
|
// Show member roles
|
||||||
|
if (member.roles) Embed.addField('Roles', `${member.roles.cache.array().join(', ')}`);
|
||||||
|
}
|
||||||
|
|
||||||
return message.channel.send({ embed: Embed });
|
return message.channel.send({ embed: Embed });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue