From 4a6db79cef75d6b57893826f7b19966b95201e06 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 28 Aug 2020 03:07:51 -0400 Subject: [PATCH] fix get referral --- src/commands/addreferral.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/addreferral.ts b/src/commands/addreferral.ts index 2fecf84..c59a5aa 100644 --- a/src/commands/addreferral.ts +++ b/src/commands/addreferral.ts @@ -19,6 +19,9 @@ export default class AddReferral extends Command { if (!account) return this.error(message.channel, 'Cannot find user.'); await account.updateOne({ $inc: { totalReferrals: 1 } }); + this.client.getDMChannel(account.userID).then((chan) => { + chan.createMessage('__**Referral - Application Approval**__\nAn applicant who used your referral code during the application process has been approved. Your referral count has been increased.'); + }).catch(() => {}); return this.success(message.channel, 'Added referral value to account.'); } catch (error) { return this.client.util.handleError(error, message, this);