From 5f89afda048fa80cd07ad713fa42f94fae08d98b Mon Sep 17 00:00:00 2001 From: Raphael Date: Sat, 15 Nov 2025 00:33:37 +0100 Subject: [PATCH] fix(events/client): User -> UserPrima to not confuse w/ discord type --- src/commands/rank/buyer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/rank/buyer.ts b/src/commands/rank/buyer.ts index a0d9288..a6f5ffa 100644 --- a/src/commands/rank/buyer.ts +++ b/src/commands/rank/buyer.ts @@ -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: {