From 8feb9dddb9bf70de05f3ba00bdf7ce6ff667bdd6 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 28 Aug 2020 03:20:25 -0400 Subject: [PATCH] fix get referral --- 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 16fb1f1..27aadca 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -25,7 +25,7 @@ export default class Whois extends Command { 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() }] }); + if (full) account = await this.client.db.Account.findOne({ $or: [{ username: user }, { userID: user }, { emailAddress: user }, { supportKey: user.toUpperCase() }, { referralCode: args[0] }] }); else account = await this.client.db.Account.findOne({ $or: [{ username: user }, { userID: user }] }); if (!account) return this.error(message.channel, 'Account not found.');