forked from engineering/cloudservices
fix get referral
parent
c3cef36a18
commit
2c46db176f
|
@ -17,7 +17,7 @@ export default class GetReferral extends Command {
|
||||||
if (!account) return this.error(message.channel, 'You do not have a Cloud Services account.');
|
if (!account) return this.error(message.channel, 'You do not have a Cloud Services account.');
|
||||||
|
|
||||||
return this.client.getDMChannel(message.author.id).then((chan) => {
|
return this.client.getDMChannel(message.author.id).then((chan) => {
|
||||||
chan.createMessage(`__**CS Account Referral Code**__\n*Referral codes are considered to be somewhat private information. Applicants with referral codes have a greater chance of approval, don't refer someone you don't trust :).*\nYour referral code: \`${account.referralCode}\`\nReferrals Granted: \`${account.totalReferrals ? account.totalReferrals : '0'}`);
|
chan.createMessage(`__**CS Account Referral Code**__\n*Referral codes are considered to be somewhat private information. Applicants with referral codes have a greater chance of approval, don't refer someone you don't trust :).*\nYour referral code: \`${account.referralCode}\`\nReferrals Granted: \`${account.totalReferrals ? account.totalReferrals : '0'}\``);
|
||||||
}).catch(() => this.error(message.channel, 'Could not send you a DM.'));
|
}).catch(() => this.error(message.channel, 'Could not send you a DM.'));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return this.client.util.handleError(err, message, this);
|
return this.client.util.handleError(err, message, this);
|
||||||
|
|
Loading…
Reference in New Issue