From f231cc4fdd97c7cb40534f4f50846900b095f5c6 Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 14 Nov 2023 17:58:50 -0500 Subject: [PATCH] fix .join() in various commands --- src/class/AccountUtil.ts | 2 +- src/class/Util.ts | 2 +- src/commands/notify.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/class/AccountUtil.ts b/src/class/AccountUtil.ts index f7b03fe..cbb7022 100644 --- a/src/class/AccountUtil.ts +++ b/src/class/AccountUtil.ts @@ -47,7 +47,7 @@ export default class AccountUtil {

Username: ${data.username}

Support Key: ${code} || You may be asked for this support key when contacting Library of Code, please keep the code in a safe area.

SSH Login:

ssh ${data.username}@cloud.libraryofcode.org
-

Underwritten by: ${moderatorMember.user.username}, ${find.pn.join(', ')} +

Underwritten by: ${moderatorMember.user.username}${find.isManager ? ' [k]' : ' '}

Useful information

How to log in:

    diff --git a/src/class/Util.ts b/src/class/Util.ts index 759dc67..2d08abf 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -299,7 +299,7 @@ export default class Util { .setTitle(embedTitle) .setColor(color) .addField('User', `${username} | <@${userID}>`, true) - .addField(archType, moderatorID === this.client.user.id ? 'SYSTEM' : `${moderator.username},${find.isManager ? ' [k] ' : ' '}(<@${moderatorID}>)`, true) + .addField(archType, moderatorID === this.client.user.id ? 'SYSTEM' : `${moderator.username}${find.isManager ? ' [k] ' : ' '}(<@${moderatorID}>)`, true) .setFooter(this.client.user.username, this.client.user.avatarURL()) .setTimestamp(); if (reason) embed.addField('Reason', reason || 'Not specified'); diff --git a/src/commands/notify.ts b/src/commands/notify.ts index 2d288d8..5d20616 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.isManager ? ' [k] ' : ' '}(<@${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({