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) {