From aa6af03930a984f1268898df325f6f306d4f84ce Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 16 Nov 2019 22:55:45 -0500 Subject: [PATCH] remove unused imports --- src/commands/modlogs.ts | 4 ++-- src/models/Moderation.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commands/modlogs.ts b/src/commands/modlogs.ts index aeb2e21..7a5f78c 100644 --- a/src/commands/modlogs.ts +++ b/src/commands/modlogs.ts @@ -23,7 +23,7 @@ export default class Modlogs extends Command { // @ts-ignore const formatted = query.sort((a, b) => a.date - b.date).map((log) => { - const { username, moderatorID, reason, type, date } = log; + const { username, moderatorID, reason, type, date, logID } = log; let name: string; switch (type) { default: name = 'Generic'; break; @@ -33,7 +33,7 @@ export default class Modlogs extends Command { case 3: name = 'Unlock'; break; case 4: name = 'Delete'; break; } - const value = `**Account name:** ${username}\n**Moderator:** <@${moderatorID}>\n**Reason:** ${reason || 'Not supplied'}\n**Date:** ${date.toLocaleString('en-us')} EST`; + const value = `**ID:** ${logID}\n**Account name:** ${username}\n**Moderator:** <@${moderatorID}>\n**Reason:** ${reason || 'Not supplied'}\n**Date:** ${date.toLocaleString('en-us')} EST`; const inline = true; return { name, value, inline }; }); diff --git a/src/models/Moderation.ts b/src/models/Moderation.ts index 67bd184..d289dbf 100644 --- a/src/models/Moderation.ts +++ b/src/models/Moderation.ts @@ -1,5 +1,4 @@ import { Document, Schema, model } from 'mongoose'; -import { ModerationInterface } from '.'; export interface ModerationInterface extends Document { username: string,