import { GatewayIntentBits, Client, Partials } from "discord.js"; import dotenv from "dotenv"; import { handleCommands } from "./commands"; import { handleListeners } from "./listeners"; dotenv.config({ path: "../../.dev.vars" }); const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildVoiceStates, GatewayIntentBits.DirectMessages, GatewayIntentBits.GuildMessageReactions, ], partials: [Partials.Channel, Partials.Reaction, Partials.User], }); handleCommands(client); handleListeners(client); client.login(process.env.DISCORD_TOKEN);