whois fix

master
Matthew 2021-07-04 20:59:02 -04:00
parent 22d7a3d666
commit 47aa29fa93
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ export default class Whois extends Command {
if (permissions.length > 0) { if (permissions.length > 0) {
embed.addField('Permissions', permissions.join(', ')); embed.addField('Permissions', permissions.join(', '));
} }
if (account.x509 || account.pgp) { 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})`); 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) { } else if (account.pgp) {