mirror of
https://github.com/citra-emu/discord-bot.git
synced 2024-12-23 01:05:38 +00:00
lint: fix issues from ESLint
This commit is contained in:
parent
9dce458bf0
commit
23e8e1a8eb
|
@ -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'];
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue