fix(events/client): User -> UserPrima to not confuse w/ discord type

This commit is contained in:
Raphael 2025-11-15 00:33:37 +01:00 committed by Raphaël
parent 87ea1b7f9b
commit 5f89afda04

View file

@ -1,7 +1,7 @@
import { SlashCommandBuilder } from '@discordjs/builders';
import { EmbedBuilder, MessageFlags } from 'discord.js';
import { prisma } from '@lib/prisma';
import { Guild as GuildPrisma } from '@prisma/client';
import { Guild as GuildPrisma, User as UserPrisma } from '@prisma/client';
import emoji from '../../../assets/emoji.json' assert { type: 'json' };
import { log } from '@lib/log';
@ -36,7 +36,7 @@ export default {
),
async execute(interaction: CommandInteraction) {
const subcommand = interaction.options.getSubcommand();
let userData: User;
let userData: UserPrisma;
try {
userData = await prisma.user.findUnique({
where: {