forked from engineering/cloudservices
Fix full flag
parent
b315d471a7
commit
0f93d42c2c
|
@ -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() }] });
|
||||||
|
|
Loading…
Reference in New Issue