more detail for presence
This commit is contained in:
parent
90d29dd210
commit
5840d6392a
1 changed files with 5 additions and 3 deletions
|
@ -30,8 +30,6 @@ 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())
|
||||||
|
@ -47,7 +45,11 @@ class userInfoCommand extends Command {
|
||||||
Embed.addField('', '');
|
Embed.addField('', '');
|
||||||
|
|
||||||
// Show user status
|
// Show user status
|
||||||
if (user.presence.activities[0]) Embed.addField('Presence', user.presence.activities[0], true);
|
if (user.presence.activities[0]) {
|
||||||
|
Embed.addField('Presence', user.presence.activities[0], true);
|
||||||
|
if (user.presence.activities[0].details) Embed.addField('', user.presence.activities[0].details, true);
|
||||||
|
if (user.presence.activities[0].state) Embed.addField('', user.presence.activities[0].state, 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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue