diff --git a/src/class/Queue.ts b/src/class/Queue.ts index 91561f4..261244c 100644 --- a/src/class/Queue.ts +++ b/src/class/Queue.ts @@ -104,6 +104,10 @@ export default class Queue { } else { embed.setColor('#eeeeee'); } + const chan = await this.client.getDMChannel(job.data.userID); + if (chan && application.token) { + chan.createMessage(`__**Application Decision Document**__\n*This document provides detailed information about the decision given to you by EDS.*\n\nhttps://eds.libraryofcode.org/dec/${application.token}`); + } embed.setDescription(`This application was processed by __${application.processedBy}__ on behalf of the vendor, department, or service who operates this application. Please contact the vendor for further information about your application if needed.`); embed.addField('Status', application.decision, true); embed.addField('User ID', job.data.userID, true); diff --git a/src/commands/apply.ts b/src/commands/apply.ts index 5ee981c..c5c2602 100644 --- a/src/commands/apply.ts +++ b/src/commands/apply.ts @@ -147,6 +147,7 @@ export default class Apply extends Command { decision: data.decision, id: data.id, processedBy: data.processedBy, + token: data.token, }; } catch (err) { const error = err;