From 23e8e1a8ebd98d66a39f958ffcd369fdd9c5c84f Mon Sep 17 00:00:00 2001 From: liushuyu Date: Sun, 18 Sep 2022 03:52:00 -0600 Subject: [PATCH] lint: fix issues from ESLint --- src/commands/ban.ts | 1 - src/server.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/ban.ts b/src/commands/ban.ts index 19973e5..39602b9 100644 --- a/src/commands/ban.ts +++ b/src/commands/ban.ts @@ -1,5 +1,4 @@ import { ban } from '../common'; -import { IModule } from '../models/interfaces'; import * as discord from 'discord.js'; export const roles = ['Admins', 'Moderators', 'CitraBot']; diff --git a/src/server.ts b/src/server.ts index 62cfb1f..e2e18be 100644 --- a/src/server.ts +++ b/src/server.ts @@ -115,7 +115,7 @@ client.on('messageUpdate', async (oldMessage, newMessage) => { if (parent && IsIgnoredCategory(parent.name) === false) { const oldM = oldMessage.cleanContent || ''; const newM = newMessage.cleanContent; - if (oldMessage.content !== newMessage.content && oldM && newM) { + if (oldMessage.content !== newMessage.content && newM) { const messageAttachment = oldMessage.attachments.first()?.proxyURL; const editedEmbed = new discord.EmbedBuilder()