platform information in whois cmd

merge-requests/12/head
Matthew 2020-04-24 18:57:56 -04:00 committed by Bsian
parent c2085378dd
commit a4182db2eb
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 9 additions and 0 deletions

View File

@ -68,6 +68,15 @@ export default class Whois extends Command {
} }
} }
embed.addField('Status', `${member.status[0].toUpperCase()}${member.status.slice(1)}`, true); 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('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); 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) { if (member.roles.length > 0) {