const { Client, Intents } = require('discord.js');
const { REST } = require('@discordjs/rest');
const { Routes } = require('discord-api-types/v9');
const path = require('path');
// Construct the absolute path to config.json
const configPath = path.join(__dirname, '../../config.json');
// Require the configuration file
const { token, clientId } = require(configPath);
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES, // Add this if you want to handle messages.
],
});
const { Client, Intents } = require('discord.js');
const { REST } = require('@discordjs/rest');
const { Routes } = require('discord-api-types/v9');
const path = require('path');
// Construct the absolute path to config.json
const configPath = path.join(__dirname, '../../config.json');
// Require the configuration file
const { token, clientId } = require(configPath);
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES, // Add this if you want to handle messages.
],
});