1
0
Fork 0

various fixes to whois commands

refactor/models
Matthew 2020-03-28 12:15:00 -04:00
parent 2f015b4e49
commit c88d4cd9ad
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ export default class Whois extends Command {
if (account.locked) details += 'This account is currently locked.\n'; if (account.locked) details += 'This account is currently locked.\n';
if (account.permissions.facultyMarshal) details += 'This account belongs to a Faculty Marshal.\n'; if (account.permissions.facultyMarshal) details += 'This account belongs to a Faculty Marshal.\n';
else if (account.permissions.sheriff) details += 'This account belongs to a Sheriff.\n'; else if (account.permissions.sheriff) details += 'This account belongs to a Sheriff.\n';
else if (account.permissions.associate) details += 'This account belongs to a Staff member.\n'; else if (account.permissions.staff) details += 'This account belongs to a Staff member.\n';
if (account.root) details += 'This account has root/administrative privileges.\n'; if (account.root) details += 'This account has root/administrative privileges.\n';
if (details) embed.addField('Additional Details', details, true); if (details) embed.addField('Additional Details', details, true);
embed.setFooter(this.client.user.username, this.client.user.avatarURL); embed.setFooter(this.client.user.username, this.client.user.avatarURL);

View File

@ -39,7 +39,7 @@ export default class Whois_User extends Command {
if (account.locked) details += 'This account is currently locked.\n'; if (account.locked) details += 'This account is currently locked.\n';
if (account.permissions.facultyMarshal) details += 'This account belongs to a Faculty Marshal.\n'; if (account.permissions.facultyMarshal) details += 'This account belongs to a Faculty Marshal.\n';
else if (account.permissions.sheriff) details += 'This account belongs to a Sheriff.\n'; else if (account.permissions.sheriff) details += 'This account belongs to a Sheriff.\n';
else if (account.permissions.associate) details += 'This account belongs to a Staff member.\n'; else if (account.permissions.staff) details += 'This account belongs to a Staff member.\n';
if (account.root) details += 'This account has root/administrative privileges.\n'; if (account.root) details += 'This account has root/administrative privileges.\n';
if (details) embed.addField('Additional Details', details, true); if (details) embed.addField('Additional Details', details, true);
embed.setFooter(this.client.user.username, this.client.user.avatarURL); embed.setFooter(this.client.user.username, this.client.user.avatarURL);