refactor(event/client): adding type to the ready event

This commit is contained in:
Raphael 2025-10-09 14:42:42 +02:00 committed by Raphaël
parent c32436202f
commit 4d32bca3f7

View file

@ -3,15 +3,17 @@ import {
EmbedBuilder,
PresenceUpdateStatus,
Events,
User,
} from 'discord.js';
import { prisma } from '../../lib/prisma.ts';
import { Bot as BotPrisma } from '@prisma/client';
export default {
name: Events.ClientReady,
once: true,
async execute(client: User) {
try {
const botData: Bot = await prisma.bot.findUnique({
const botData: BotPrisma = await prisma.bot.findUnique({
where: {
id: 1,
},