lint: fix issues from ESLint

This commit is contained in:
liushuyu 2022-09-18 03:52:00 -06:00
parent 9dce458bf0
commit 23e8e1a8eb
No known key found for this signature in database
GPG key ID: 23D1CE4534419437
2 changed files with 1 additions and 2 deletions

View file

@ -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'];

View file

@ -115,7 +115,7 @@ client.on('messageUpdate', async (oldMessage, newMessage) => {
if (parent && IsIgnoredCategory(parent.name) === false) {
const oldM = oldMessage.cleanContent || '<no content>';
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()