Fix status checker

merge-requests/6/merge
Bsian 2020-06-10 14:13:38 +01:00
parent e387d20f44
commit 1786239f6a
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 3 deletions

View File

@ -65,9 +65,7 @@ export default class Whois extends Command {
break; break;
} }
} }
if (member.status) { embed.addField('Status', member.status === 'dnd' ? 'Do Not Disturb' : `${member.status?.substring(0, 1).toUpperCase()}${member.status?.substring(1)}` || 'Unknown', true);
embed.addField('Status', `${member.status[0].toUpperCase()}${member.status.slice(1)}`, true);
}
if (member.bot) { if (member.bot) {
embed.addField('Platform', 'API/WebSocket', true); embed.addField('Platform', 'API/WebSocket', true);
} else if (member.clientStatus?.web === 'online' || member.clientStatus?.web === 'idle' || member.clientStatus?.web === 'dnd') { } else if (member.clientStatus?.web === 'online' || member.clientStatus?.web === 'idle' || member.clientStatus?.web === 'dnd') {