From b6da450c943f6b44043c6aa9191670bdbad85e32 Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 31 Oct 2023 18:48:39 -0400 Subject: [PATCH] fix .join() in notify --- src/commands/notify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/notify.ts b/src/commands/notify.ts index 50fc8ee..2d288d8 100644 --- a/src/commands/notify.ts +++ b/src/commands/notify.ts @@ -30,7 +30,7 @@ export default class Notify extends Command { embed.addField('User', `${account.username} | <@${account.userID}>`, true); const req = await axios.get('https://loc.sh/int/directory'); const technician = req.data.find((mem) => mem.userID === message.author.id); - embed.addField('Technician', message.author.id === this.client.user.id ? 'SYSTEM' : `${message.author.username}, ${technician.pn.join(', ')} (<@${message.author.id}>)`, true); + embed.addField('Technician', message.author.id === this.client.user.id ? 'SYSTEM' : `${message.author.username},${technician.isManager ? ' [k] ' : ' '}(<@${message.author.id}>)`, true); const ch = this.client.channels.cache.get('580950455581147146') as TextChannel; ch.send({ embeds: [embed] }); this.client.util.transport.sendMail({