fixes
parent
74ab2309f2
commit
69efc17f8d
|
@ -61,9 +61,12 @@ export default class Root extends Route {
|
||||||
if (check) return res.sendStatus(401);
|
if (check) return res.sendStatus(401);
|
||||||
const embed = new RichEmbed();
|
const embed = new RichEmbed();
|
||||||
embed.setTitle('Referral Authorization');
|
embed.setTitle('Referral Authorization');
|
||||||
|
embed.setDescription(req.query.t.toString());
|
||||||
embed.addField('Referred User', `${token.referredUserAndDiscrim} | ${token.referredUserID}`, true);
|
embed.addField('Referred User', `${token.referredUserAndDiscrim} | ${token.referredUserID}`, true);
|
||||||
embed.addField('Referrer User', token.referrerUsername, true);
|
embed.addField('Referrer User', token.referrerUsername, true);
|
||||||
embed.addField('Referral Code', token.referralCode, 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');
|
const channel = <TextChannel> this.server.client.guilds.get('446067825673633794').channels.get('580950455581147146');
|
||||||
res.sendStatus(200);
|
res.sendStatus(200);
|
||||||
await this.server.storage.set(req.query.t.toString(), true);
|
await this.server.storage.set(req.query.t.toString(), true);
|
||||||
|
|
Loading…
Reference in New Issue