1
0
Fork 0
refactor/models
Matthew 2020-08-30 22:19:02 -04:00
parent 74ab2309f2
commit 69efc17f8d
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 3 additions and 0 deletions

View File

@ -61,9 +61,12 @@ export default class Root extends Route {
if (check) return res.sendStatus(401);
const embed = new RichEmbed();
embed.setTitle('Referral Authorization');
embed.setDescription(req.query.t.toString());
embed.addField('Referred User', `${token.referredUserAndDiscrim} | ${token.referredUserID}`, true);
embed.addField('Referrer User', token.referrerUsername, true);
embed.addField('Referral Code', token.referralCode, true);
embed.setTimestamp();
embed.setFooter(this.server.client.user.username, this.server.client.user.avatarURL);
const channel = <TextChannel> this.server.client.guilds.get('446067825673633794').channels.get('580950455581147146');
res.sendStatus(200);
await this.server.storage.set(req.query.t.toString(), true);