bug resolution (again)

This commit is contained in:
Lukian LEIZOUR 2024-03-15 21:56:48 +01:00
parent cb16fa9239
commit 9bc0ed3d7e

View file

@ -1,11 +1,19 @@
import * as fs from 'fs'; import * as fs from 'fs';
import * as path from 'path'; import * as path from 'path';
import "dotenv/config"; import "dotenv/config";
import { Client, Collection, REST, Routes, RESTPutAPIApplicationCommandsResult } from 'discord.js'; import { Client, Collection, REST, Routes, RESTPutAPIApplicationCommandsResult, GatewayIntentBits, Partials } from 'discord.js';
const client: Client = new Client({ const client: Client = new Client({
intents: [], intents: [
partials: [] GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.DirectMessages,
],
partials: [
Partials.Channel,
Partials.Message,
]
}) })
client.commands = new Collection(); client.commands = new Collection();