fix(events/client): User -> UserPrima to not confuse w/ discord type
This commit is contained in:
parent
87ea1b7f9b
commit
5f89afda04
1 changed files with 2 additions and 2 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue