feat(index): replacing the variable with the new lib/client

This commit is contained in:
Raphael 2025-11-14 22:12:34 +01:00 committed by Raphaël
parent 70a1d75344
commit 6bad3415a6

View file

@ -2,22 +2,12 @@ import fs from 'node:fs';
import path from 'node:path'; import path from 'node:path';
import 'dotenv/config'; import 'dotenv/config';
import { import {
Client,
Collection, Collection,
GatewayIntentBits,
REST, REST,
Routes, Routes,
} from 'discord.js'; } from 'discord.js';
import { log } from '@lib/log'; import { log } from '@lib/log';
import { client } from '@lib/client';
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
],
});
client.commands = new Collection(); client.commands = new Collection();