From b090b5e8035e4a17221d68080f6012ab72cec255 Mon Sep 17 00:00:00 2001 From: Matthew Ray Date: Fri, 22 May 2020 02:11:00 -0400 Subject: [PATCH] fixes to whois cmd --- src/commands/whois.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/whois.ts b/src/commands/whois.ts index f578bd3..6b52b8e 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -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') {