changes to webhook api
parent
2f06294192
commit
97d6b8b1bb
|
@ -13,7 +13,7 @@ export default class Webhook extends Route {
|
|||
if (req.headers.authorization !== this.server.security.keys.iv.toString('base64')) return res.status(401).json({ code: this.constants.codes.UNAUTHORIZED, message: this.constants.codes.UNAUTHORIZED });
|
||||
const embed = new RichEmbed();
|
||||
embed.setTitle('Service Request');
|
||||
embed.setDescription(req.body.url);
|
||||
embed.setDescription(`https://staff.libraryofcode.org/browse/${req.body.key}\n${req.body.url}`);
|
||||
embed.setColor('#FF00FF');
|
||||
embed.addField('Ticket Number', req.body.key, true);
|
||||
embed.addField('Reporter', req.body.reporter, true);
|
||||
|
|
Loading…
Reference in New Issue