remove unused imports

merge-requests/1/merge
Matthew 2019-11-16 22:55:45 -05:00
parent 466fc8bf1d
commit aa6af03930
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
2 changed files with 2 additions and 3 deletions

View File

@ -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 };
});

View File

@ -1,5 +1,4 @@
import { Document, Schema, model } from 'mongoose';
import { ModerationInterface } from '.';
export interface ModerationInterface extends Document {
username: string,