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.');