diff --git a/src/index.ts b/src/index.ts index 4ebde80..e510c44 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,11 +1,19 @@ import * as fs from 'fs'; import * as path from 'path'; 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({ - intents: [], - partials: [] + intents: [ + GatewayIntentBits.Guilds, + GatewayIntentBits.GuildMessages, + GatewayIntentBits.MessageContent, + GatewayIntentBits.DirectMessages, + ], + partials: [ + Partials.Channel, + Partials.Message, + ] }) client.commands = new Collection();