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,17 +38,8 @@ 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
|
||||||
if (user.presence.activities[0]) {
|
if (user.presence.activities[0]) {
|
||||||
Embed.addField('Presence', user.presence.activities[0], true);
|
Embed.addField('Presence', user.presence.activities[0], true);
|
||||||
|
@ -57,7 +48,7 @@ class userInfoCommand extends Command {
|
||||||
}
|
}
|
||||||
// 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);
|
||||||
|
|
||||||
// Show user locale ( i have no idea what it is ) https://discord.js.org/#/docs/main/master/class/User?scrollTo=locale
|
// Show user locale ( i have no idea what it is ) https://discord.js.org/#/docs/main/master/class/User?scrollTo=locale
|
||||||
if (user.locale) Embed.addField('Locale settings', user.locale, true);
|
if (user.locale) Embed.addField('Locale settings', user.locale, true);
|
||||||
|
|
||||||
|
@ -68,9 +59,18 @@ class userInfoCommand extends Command {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = userInfoCommand;
|
module.exports = userInfoCommand;
|
||||||
|
|
Loading…
Reference in a new issue