Merge branch 'dev'

merge-requests/13/head
Matthew 2020-05-22 02:11:22 -04:00
commit 55e78b0018
No known key found for this signature in database
GPG Key ID: D499B75C1390E321
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ export default class Whois extends Command {
break;
}
}
embed.addField('Status', `${member.status[0].toUpperCase()}${member.status.slice(1)}`, true);
if (member.status) {
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 === 'online' || member.clientStatus?.web === 'idle' || member.clientStatus?.web === 'dnd') {