From 3d930792fe2df95584d1c2337adbbcb62596a02f Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 6 Jan 2024 19:06:44 -0500 Subject: [PATCH] various improvements to handling modlogs --- src/class/Util.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index 2d08abf..279cacc 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -276,7 +276,7 @@ export default class Util { } else date = null; } - const expiration = { date, processed }; + const expiration: { date: Date; processed: boolean } = { date, processed }; logInput.expiration = expiration; const log = new this.client.db.Moderation(logInput); @@ -290,8 +290,8 @@ export default class Util { case 0: archType = 'Technician'; embedTitle = 'Cloud Account | Create'; color = '#00ff00'; break; case 1: archType = 'Technician'; embedTitle = 'Account Warning | Warn'; color = '#ffff00'; break; case 2: archType = 'Technician'; embedTitle = 'Account Infraction | Lock'; color = '#ff6600'; break; - case 3: archType = 'Technician'; embedTitle = 'Account Reclaim | Unlock'; color = '#0099ff'; break; - case 4: archType = 'Director'; embedTitle = 'Cloud Account | Delete'; color = '#ff0000'; break; + case 3: archType = 'Technician'; embedTitle = 'Account Infraction | Unlock'; color = '#0099ff'; break; + case 4: archType = 'Manager'; embedTitle = 'Cloud Account | Delete'; color = '#ff0000'; break; } const req = await axios.get('https://loc.sh/int/directory'); const find = req.data.find((mem) => mem.userID === moderator.id);