fix issue with whois platform

merge-requests/12/head
Matthew 2020-04-25 00:01:40 -04:00 committed by Bsian
parent d48386a7b1
commit 9bd97df10a
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 3 additions and 3 deletions

View File

@ -70,11 +70,11 @@ 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) {
} else if (member.clientStatus.web === 'online' || member.clientStatus.web === 'idle' || member.clientStatus.web === 'dnd') {
embed.addField('Platform', 'Web', true);
} else if (member.clientStatus.desktop) {
} else if (member.clientStatus.desktop === 'online' || member.clientStatus.desktop === 'idle' || member.clientStatus.desktop === 'dnd') {
embed.addField('Platform', 'Desktop', true);
} else if (member.clientStatus.mobile) {
} else if (member.clientStatus.mobile === 'online' || member.clientStatus.mobile === 'idle' || member.clientStatus.mobile === 'dnd') {
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);