1
0
Fork 0

Fix full flag

refactor/models
Bsian 2020-06-09 23:01:50 +01:00
parent b315d471a7
commit 0f93d42c2c
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export default class Whois extends Command {
try { try {
let full = false; let full = false;
let account: AccountInterface; let account: AccountInterface;
if (args[1] === '--full' && !this.fullRoles.some((r) => message.member.roles.includes(r))) full = true; if (args[1] === '--full' && this.fullRoles.some((r) => message.member.roles.includes(r))) full = true;
const user = args[0] || message.author.id; const user = args[0] || message.author.id;
if (full) account = await this.client.db.Account.findOne({ $or: [{ username: user }, { userID: user }, { emailAddress: user }, { supportKey: user.toUpperCase() }] }); if (full) account = await this.client.db.Account.findOne({ $or: [{ username: user }, { userID: user }, { emailAddress: user }, { supportKey: user.toUpperCase() }] });