refactor(events/messages): now using the new log system
This commit is contained in:
parent
6c3a7587e8
commit
a4c08eaae5
4 changed files with 22 additions and 12 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue