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()