From 6d9ee2f9660158fef34b8e2226afe21ea0a89c21 Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 14 Oct 2025 00:18:55 +0200 Subject: [PATCH] refactor(events/guild): adding the tsconfig + eslint correction --- src/events/guild/guildUpdate.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/events/guild/guildUpdate.ts b/src/events/guild/guildUpdate.ts index ceea162..9693882 100644 --- a/src/events/guild/guildUpdate.ts +++ b/src/events/guild/guildUpdate.ts @@ -1,5 +1,5 @@ import { Events, Guild, EmbedBuilder, channelMention, Channel } from 'discord.js'; -import { prisma } from '../../lib/prisma.ts'; +import { prisma } from '@lib/prisma'; import { Guild as GuildPrisma } from '@prisma/client'; const verificationLevels: string[] = [ @@ -29,7 +29,7 @@ export default { const logChannel : Channel = await newGuild.client.channels .fetch(guildData.logServer) .catch(() => null); - if (!logChannel || !logChannel.isTextBased()) {return;} + if (!logChannel.isTextBased()) {return;} if (oldGuild.name !== newGuild.name) { toPrint += `- Name:\n\`${oldGuild.name}\` => \`${newGuild.name}\`\n`; } @@ -55,11 +55,11 @@ export default { toPrint += `- Filter:\n\`${oldGuild.premiumTier}\` => \`${newGuild.premiumTier}\`\n`; } const toRep = new EmbedBuilder() - .setColor(`${guildData.color}`) + .setColor(guildData.color) .setFooter({ text: guildData.footer, }) - .setDescription(`${toPrint}`); + .setDescription(toPrint); logChannel.send({ embeds: [ toRep,