From 38f5a5f70e989cb26b979a095332da9dbf47cf12 Mon Sep 17 00:00:00 2001 From: Hiroyuki Date: Tue, 26 Jan 2021 23:33:54 -0400 Subject: [PATCH] Fix paging bug with emails --- src/commands/page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/page.ts b/src/commands/page.ts index 7ead34a..6687434 100644 --- a/src/commands/page.ts +++ b/src/commands/page.ts @@ -180,7 +180,7 @@ export default class Page extends Command { await this.client.util.transporter.sendMail({ from: '"LOC Paging System" ', to: email, - subject: `PAGE FROM ${recipientNumber}`, + subject: `PAGE FROM ${senderNumber}`, html: `

Page

${options?.emergencyNumber ? `

[SEN#${options.emergencyNumber}]` : ''}Recipient PN: ${recipientNumber}
Sender PN: ${senderNumber} (${sender ? `${sender.username}#${sender.discriminator}` : ''})
Initial Command: https://discordapp.com/channels/${this.mainGuild.id}/${message.channel.id}/${message.id} (<#${message.channel.id}>)

Pager Code: ${code} (${this.local.codeDict.get(code)})${txt ? `
Message: ${txt}` : ''}`, }); }