mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-12-23 04:05:35 +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 { ban } from '../common';
|
||||||
import { IModule } from '../models/interfaces';
|
|
||||||
import * as discord from 'discord.js';
|
import * as discord from 'discord.js';
|
||||||
|
|
||||||
export const roles = ['Admins', 'Moderators', 'CitraBot'];
|
export const roles = ['Admins', 'Moderators', 'CitraBot'];
|
||||||
|
|
|
@ -115,7 +115,7 @@ client.on('messageUpdate', async (oldMessage, newMessage) => {
|
||||||
if (parent && IsIgnoredCategory(parent.name) === false) {
|
if (parent && IsIgnoredCategory(parent.name) === false) {
|
||||||
const oldM = oldMessage.cleanContent || '<no content>';
|
const oldM = oldMessage.cleanContent || '<no content>';
|
||||||
const newM = newMessage.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 messageAttachment = oldMessage.attachments.first()?.proxyURL;
|
||||||
|
|
||||||
const editedEmbed = new discord.EmbedBuilder()
|
const editedEmbed = new discord.EmbedBuilder()
|
||||||
|
|
Loading…
Reference in a new issue