platform information in whois cmd
parent
c2085378dd
commit
a4182db2eb
|
@ -68,6 +68,15 @@ export default class Whois extends Command {
|
|||
}
|
||||
}
|
||||
embed.addField('Status', `${member.status[0].toUpperCase()}${member.status.slice(1)}`, true);
|
||||
if (member.bot) {
|
||||
embed.addField('Platform', 'API/WebSocket', true);
|
||||
} else if (member.clientStatus.web) {
|
||||
embed.addField('Platform', 'Web', true);
|
||||
} else if (member.clientStatus.desktop) {
|
||||
embed.addField('Platform', 'Desktop', true);
|
||||
} else if (member.clientStatus.mobile) {
|
||||
embed.addField('Platform', 'Mobile', true);
|
||||
}
|
||||
embed.addField('Joined At', `${moment(new Date(member.joinedAt)).format('dddd, MMMM Do YYYY, h:mm:ss A')} ET`, true);
|
||||
embed.addField('Created At', `${moment(new Date(member.user.createdAt)).format('dddd, MMMM Do YYYY, h:mm:ss A')} ET`, true);
|
||||
if (member.roles.length > 0) {
|
||||
|
|
Loading…
Reference in New Issue