From 47aa29fa938dfd379e5aeacd9c260987d33dbf3f Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 4 Jul 2021 20:59:02 -0400 Subject: [PATCH] whois fix --- src/commands/whois.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/whois.ts b/src/commands/whois.ts index 0f1c6b9..bcc24b0 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -225,7 +225,7 @@ export default class Whois extends Command { if (permissions.length > 0) { embed.addField('Permissions', permissions.join(', ')); } - if (account.x509 || account.pgp) { + if (account?.x509 || account?.pgp) { if (account.x509 && account.pgp) { embed.addField('Credentials', `[PGP](https://comm.libraryofcode.org/keys/~/pgp/${member.id}) | [x509](https://comm.libraryofcode.org/keys/~/x509/${member.id})`); } else if (account.pgp) {