From 0f93d42c2c02cc4065d15362f198b1865f72c745 Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 9 Jun 2020 23:01:50 +0100 Subject: [PATCH] Fix full flag --- src/commands/whois.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/whois.ts b/src/commands/whois.ts index 9b364c6..4a589a6 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -23,7 +23,7 @@ export default class Whois extends Command { try { let full = false; 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; if (full) account = await this.client.db.Account.findOne({ $or: [{ username: user }, { userID: user }, { emailAddress: user }, { supportKey: user.toUpperCase() }] });