remove unused imports
parent
466fc8bf1d
commit
aa6af03930
|
@ -23,7 +23,7 @@ export default class Modlogs extends Command {
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const formatted = query.sort((a, b) => a.date - b.date).map((log) => {
|
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;
|
let name: string;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
default: name = 'Generic'; break;
|
default: name = 'Generic'; break;
|
||||||
|
@ -33,7 +33,7 @@ export default class Modlogs extends Command {
|
||||||
case 3: name = 'Unlock'; break;
|
case 3: name = 'Unlock'; break;
|
||||||
case 4: name = 'Delete'; 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;
|
const inline = true;
|
||||||
return { name, value, inline };
|
return { name, value, inline };
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { Document, Schema, model } from 'mongoose';
|
import { Document, Schema, model } from 'mongoose';
|
||||||
import { ModerationInterface } from '.';
|
|
||||||
|
|
||||||
export interface ModerationInterface extends Document {
|
export interface ModerationInterface extends Document {
|
||||||
username: string,
|
username: string,
|
||||||
|
|
Loading…
Reference in New Issue