refactor(events/messages): now using the new log system

This commit is contained in:
Raphael 2025-10-26 17:48:16 +01:00 committed by Raphaël
parent 6c3a7587e8
commit a4c08eaae5
4 changed files with 22 additions and 12 deletions

View file

@ -1,6 +1,7 @@
import { Events, Message } from 'discord.js';
import { prisma } from '@lib/prisma';
import { User as UserPrisma } from '@prisma/client';
import { GuildUser as GuildUserPrisma } from '@prisma/client';
const xpCooldown: Map<string, number> = new Map<string, number>();
@ -28,7 +29,7 @@ export default {
},
});
}
let guildUser = await prisma.guildUser.findUnique({
let guildUser: GuildUserPrisma | null = await prisma.guildUser.findUnique({
where: {
userId_guildId: {
userId: message.author.id,