1
0
Fork 0

fix .join() in notify

pull/1/head
Matthew 2023-10-31 18:48:39 -04:00
parent 81f58cab27
commit b6da450c94
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
1 changed files with 1 additions and 1 deletions

View File

@ -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({